Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reverse property path in Turtle RDF serialization?

Tags:

rdf

turtle-rdf

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?

like image 207
Ania David Avatar asked Oct 18 '22 11:10

Ania David


1 Answers

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.

like image 192
scotthenninger Avatar answered Dec 22 '22 16:12

scotthenninger