Skip to content

Commit

Permalink
spec: sections: target-vocabulary: RelativePathSource is now in Core
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVanAssche committed Jan 15, 2025
1 parent e8cfd69 commit 9cf6115
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions spec/section/target-vocabulary.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,32 +106,6 @@ If unspecified, the default value is UTF-8.
This namespace is NOT limited to the listed compression formats
and MAY be extended in the future.

#### Relative paths

Relative paths to files are covered by a target access description included
in this specification which subclasses `rml:Target` as `rml:RelativePathTarget`.
This access description allows accessing files relative from:

- `rml:CurrentWorkingDirectory`: relative to the current working directory of the RML processor.
- `rml:MappingDirectory`: relative to the location of the RML mapping.
- A string Literal: a string describing an absolute path against which relative paths are resolved, similar to the Base URI in [RFC3986](https://www.rfc-editor.org/rfc/rfc3986).

If `rml:root` is not specified, it defaults to `rml:CurrentWorkingDirectory`.

| Property | Domain | Range |
| ----------- | ------------------------- | ------------------------------------------------------------------ |
| `rml:root` | `rml:RelativePathSource` | `rml:CurrentWorkingDirectory`, `rml:MappingDirectory` or `Literal` |
| `rml:path` | `rml:RelativePathSource` | `Literal` |

<pre class="ex-source">
&lt;#RelativePathCWD&gt; a rml:LogicalTarget;
rml:target [ a rml:RelativePathTarget, rml:Target;
rml:root rml:CurrentWorkingDirectory;
rml:path "./file.ttl";
];
.
</pre>

### Examples {#target-examples}

The following example show a Target of an RDF dump in Turtle [[Turtle]]
Expand Down

0 comments on commit 9cf6115

Please sign in to comment.