Name
cx:rdf-graph — Extracts a single graph from an RDF dataset.
Synopsis
This step extracts a single graph from a dataset.
Input port | Primary | Sequence | Content types |
---|---|---|---|
source | ✔ |
Output port | Primary | Sequence | Content types |
---|---|---|---|
result | ✔ |
Option name | Type | Default value |
---|---|---|
graph | xs:anyURI? | () |
This is an extension step; to use it, your pipeline must include its declaration.
For example, by including the extension library with an import at the top of your
pipeline:
<p:import href="https://xmlcalabash.com/ext/library/rdf.xpl"/>
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="source"/>
| <p:output port="result"/>
| <p:option name="graph" as="xs:anyURI?"/>
5 |</p:declare-step>
Description
The cx:rdf-graph
step extracts a single graph from a dataset.
If a graph
name is provided, that named graph is extracted. If no
name is provided, the default model is extracted.