Selecting Only Subjects

For the RDF/XML round-tripping to work effectively, I need to be able to select only nodes that are the subject of a triple. Taking a leaf out of Sean B. Palmer's excellent RDFPath proposal, I'm introducing a subject() node specifier:

subject()
A node specifier that matches only resources that are the subject of a triple.

Here are some examples of how it would be used in nodepaths:

/subject()
A globally scoped NodePath that selects all nodes in the context graph that are the subject of any triple in that graph.
resource('http://example.com/')
A locally scoped NodePath that selects the context node only if it has the given uriref and is the subject of any triple in the graph.

Comments

No comments yet.

Leave a comment

Sorry, the comment form is closed at this time.