Source Scoped Nodepaths
I ended up choosing '~' as the prefix for the source scoped nodepaths. A source scoped nodepath uses all the nodes in the graph before the RDFS closure rules are applied. For comparison here is the same nodepath with three different scopes:
resource()[resource('http://ex.example.com/age')/literal() = literal('23')]- A locally scoped NodePath that selects the context node only if it has a 'http://ex.example.com/age’ property with a literal value of '23’.
/resource()[resource('http://ex.example.com/age')/literal() = literal('23')]- A globally scoped NodePath that selects all nodes from the RDFS closed graph that have a 'http://ex.example.com/age’ property with a literal value of '23’.
~resource()[resource('http://ex.example.com/age')/literal() = literal('23')]- A source scoped NodePath that selects all nodes from the original source graph that have a 'http://ex.example.com/age’ property with a literal value of '23’.
Comments
No comments yet.
Leave a comment
Sorry, the comment form is closed at this time.
