-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
Currently, N3 assumes that RDF lists consist of quads having a predicate of rdf:first
or rdf:rest
only. Is there any reason for this?
I would expect this example to be valid, but N3 declares it as malformed with the error http://example.org/1 can't be subject and object
:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix : <http://example.org/> .
:alice foaf:name "Alice" .
:bob foaf:name "Bob" .
:cal foaf:knows :1 .
:1 rdf:first :alice ; rdf:rest :2 .
:2 rdf:first :bob ; rdf:rest rdf:nil .
# as soon as we add other triples to the list, it is declared as malformed
:1 a rdf:List .
See e.g. this ontology for a real world example that we would like to use together with N3.
Metadata
Metadata
Assignees
Labels
No labels