You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Install with `gem install rdf-turtle`
19
19
* Implements a complete parser for [Turtle][].
20
20
* Compatible with Ruby >= 2.2.2.
21
21
* Optional streaming writer, to serialize large graphs
22
+
* Provisional support for [Turtle*][RDF*].
22
23
23
24
## Usage
24
25
Instantiate a reader from a local file:
@@ -35,6 +36,50 @@ Write a graph to a file:
35
36
writer << graph
36
37
end
37
38
39
+
## Turtle* (RDFStar)
40
+
41
+
Both reader and writer include provisional support for [Turtle*][RDF*].
42
+
43
+
Internally, an `RDF::Statement` is treated as another resource, along with `RDF::URI` and `RDF::Node`, which allows an `RDF::Statement` to have a `#subject` or `#object` which is also an `RDF::Statement`.
44
+
45
+
**Note: This feature is subject to change or elimination as the standards process progresses.**
46
+
47
+
### Serializing a Graph containing embedded statements
Readers support a `rdfstar` option with either `:PG` (Property Graph) or `:SA` (Separate Assertions) modes. In `:PG` mode, statements that are used in the subject or object positions are also implicitly added to the graph:
<https://rubygems.org/gems/rdf-turtle> <http://usefulinc.com/ns/doap#shortdesc> "Turtle reader/writer for Ruby."@en .
8
8
<https://rubygems.org/gems/rdf-turtle> <http://usefulinc.com/ns/doap#description> "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite."@en .
0 commit comments