In the Turtle serialization of an RDF graph, I have many triples like this (many individuals, all with a common value of type):
:A a :b .
:B a :b .
:C a :b .
:D a :b .
# …
:Z a :b .
Is there any way to write this succinctly in Turtle? In SPARQL, which has some similarities to Turtle, we can write:
:b ^a :A, :B, :C, …, :Z .
Is there a counterpart in Turtle?
No, there isn't a Turtle shortcut for this. See RDF 1.1 Turtle One suggestion is to use one of the many free ontology editors and not have to worry much about reading the text serialization. TopBraid Composer Free and Protégé are good choices, though Protégé is more focused on OWL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With