Skip to main content

url_extract_parameter

A function used to extract a given parameter from a section of validly formatted url according to RFC 2396, in format [protocol:][//host[:port]][path][?query][#fragment].

Parameter

Type

URL

string, anyuri

arg1

string, anyuri

Returns: string

Example

Query:

PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/>
PREFIX fn: <http://data.world/function/functions#>

SELECT (fn:url_extract_parameter("http://world.data:8080/query?foo=bar", "foo") AS ?url_extract_parameter)
{
}

Run query

Results:

url_extract_parameter

bar