Questions tagged [turtle-rdf]

Turtle is a textual syntax that allows RDF graphs to be written in a compact and natural text form, with abbreviations for common usage patterns and datatypes

About

Turtle (Terse RDF Triple Language) is a format for expressing data in the Resource Description Framework () data model with a syntax similar to . RDF, in turn, represents information using "triples", each of which consists of a subject, a predicate, and an object. Each of those items is expressed as a Web URI. Hence Turtle provides levels of compatibility with the existing and formats as well as the triple pattern syntax of .

Links

273 questions
5
votes
2 answers

Is there a shortcut for creating a class in N3/Turtle ontology language

Here is how I know to create a class in N3: :Person a rdfs:Class. And here is how to specify that a specific ressource is an instance of that class: :Pat a :Person. Problem: I want to create a class with more than 20000 instances (programmatically…
user14750
  • 157
  • 4
4
votes
1 answer

Convert .nq (N-QUAD) file to .ttl (TURTLE)?

Currently there are many tools for RDF file type conversion. RDF2RDF, EasyRDF, and rrdf in R has some conversion functionalities. However, NONE of these conversion tools include converting .nq files to the other file types (.nt, .ttl, .rdf, .xml,…
lrthistlethwaite
  • 494
  • 2
  • 6
  • 23
4
votes
1 answer

Member of an owl:Class versus owl:NamedIndividual

Is it right, that in OWL-DL, if some :x has an rdf:type of something which is an owl:Class, e.g. :Car :Car rdf:type owl:Class . :x rdf:type :Car . or equivalent :Car a owl:Class . :x a :Car . it cannot be deduced, that :x must be…
rmv
  • 3,195
  • 4
  • 26
  • 29
4
votes
1 answer

Determine if a specific triple exists using SPARQL

If the data set is: @prefix dc: . @prefix : . @prefix ns: . :book1 dc:title "SPARQL Tutorial" . :book2 dc:title "The Semantic Web" . How do I check…
significance
  • 4,797
  • 8
  • 38
  • 57
4
votes
1 answer

Are email addresses without "mailto:" allowed as IRIs?

In the RDF Turtle documentation from W3C I came across two examples (16 and 17) where an email address was used as an IRI: _:b . As I understand it, email addresses are allowed as URIs when…
Dieudonné
  • 543
  • 1
  • 4
  • 16
4
votes
1 answer

Can owl:class and owl:restriction be removed from restriction class definitions?

Are these statements the same ? Is there any concern if I remove owl:Restriction and owl:Class. they seem redundant to state, but this is always how I see examples online. owl:onProperty has domain owl:restriction and owl:restriction is a…
Mike
  • 295
  • 1
  • 2
  • 7
4
votes
1 answer

If I have a annotation property has and each child (Y,Z) has property canDo, how can the Y inherit all the canDo?

I am working with Turtle and OWL. Say X is a class has a number of properties that it includes. How can I make the X have the same properties as all its children classes (Y and Z)? :has a owl:ObjectProperty :canDo a owl:ObjectProperty :X :has :Y :X…
3
votes
1 answer

cross referencing other .ttl in Turtle RDF

Is there a way for a .ttl file to contain references to other .ttl files? (to work as #include in C language)
Manuel Araoz
  • 15,962
  • 24
  • 71
  • 95
3
votes
1 answer

What is the difference between "myURI.com"^^xsd:anyURI and ?

The title covers my question pretty well. I've looked into the xsd standard, the rdf standard but found no direct answer to my question. I'm trying to understand whether there is a difference in "meaning" between both…
Robin
  • 135
  • 10
3
votes
1 answer

Extract synonyms and label from Turtle file using SPARQL

I am in a learning phase of SPARQL. I am working with a Turtle file to extract some information. The condition is: if the exact synonym has a substring 'stroke' or 'Stroke', the query should return all the synonyms and rdfs:label. I am using below…
rshar
  • 1,381
  • 10
  • 28
3
votes
1 answer

Can a SHACL validator return subject of validated object as focus node?

we're trying to validate some data but right now the SHACL validation is on the anonymous object of a triple so focus node comes back empty. What we want is to get the subject of that triple as focus node. I created a small example to illustrate my…
CrocoDillon
  • 126
  • 5
3
votes
0 answers

What are the key advantages and use cases of RDF* graphs compared to LPG?

I understand that RDF* solves the issue of properties and attributes and internal structure missing in RDF. But I wonder what are some use cases when RDF* are better than LPG? And what are the main advantages of RDF* over LPGs?
kirgol
  • 367
  • 1
  • 3
  • 12
3
votes
1 answer

Loading ontology via owlready yields error

I would like to use the ontology "dbnary" and I am using owlready When trying to load the ontology from the website, I get this error : Maybe I am using the wrong library, is there a library to work with ontology in turtle format. I want to extract…
kely789456123
  • 605
  • 1
  • 6
  • 21
3
votes
1 answer

What is the difference between these shape graphs which use sh:or?

I have the following Data Graph. @prefix hr: . @prefix rdf: . @prefix rdfs: . @prefix sch:
James Hudson
  • 844
  • 6
  • 19
3
votes
1 answer

Are foaf:Person and schema.org/Person compatible with each other? or better stick with one of them?

schema.org is better for SEO From https://lov.linkeddata.es/dataset/lov/ it seems FOAF has more adoption? I have used the ontology: @prefix dcterms: . @prefix foaf: . @prefix gr:…
Mzq
  • 1,796
  • 4
  • 30
  • 65
1
2
3
18 19