---
schema_version: "1"
id: 3fe541d1b14d6f919dab1493d894c9017b1d65dfc17519b2bee1e2c4cfba6cc1
title: parseURI
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-url-functions-parseuri.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-url-functions-parseuri
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9bfde09e32a7f84762e3c50474dd9279b40f48e1ed7da6f057c45c7e50443e67
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# parseURI

## [](#parseuri1)parseURI(uri: String): URI

URL を解析し、​`URI`​ オブジェクトを返します。

出力 ​`URI`​ オブジェクトの ​`isValid: Boolean`​ プロパティは、解析プロセスが成功したかどうかを示します。このオブジェクトのすべての項目は省略可能で、項目は URL 入力に存在する場合のみ出力に表示されます。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>uri</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">URI 入力。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

この例では、URL を解析します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::core::URL
output application/json
---
{
  'composition': parseURI('https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#footer')
}
```

#### [](#出力)出力

```JSON
{
  "composition": {
    "isValid": true,
    "raw": "https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#footer",
    "host": "en.wikipedia.org",
    "authority": "en.wikipedia.org",
    "fragment": "footer",
    "path": "/wiki/Uniform_Resource_Identifier",
    "scheme": "https",
    "isAbsolute": true,
    "isOpaque": false
  }
}
```