sem:rdf-get( $location as xs:string, [$options as xs:string*], [$http-opts as element()?] ) as sem:triple*
This function returns sem:triples from a specified location.
Parameters | |
---|---|
location | The location of the document. |
options |
Parsing options. Valid options include:
|
http-opts |
An options node as described for the function
xdmp:http-get .
|
http://marklogic.com/xdmp/privileges/xdmp-document-get
xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; sem:rdf-get('C:/Data/Semantics/example.ttl', "turtle") => sem:triple(sem:iri("http://example.com/ns/data#item342"), sem:iri("http://example.com/ns/details#shipped"), xs:date("2013-05-20")) sem:triple(sem:iri("http://example.com/ns/data#item342"), sem:iri("http://example.com/ns/details#quantity"), 4) sem:triple(sem:iri("http://example.com/ns/data#item342"), sem:iri("http://example.com/ns/details#invoiced"), fn:false()) sem:triple(sem:iri("http://example.com/ns/data#item342"), sem:iri("http://example.com/ns/details#costPerItem"), 10.5)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.