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
2
votes
1 answer

Is there a way to express disjunctive object property assertions in OWL?

I am wondering if there is a way to express logically complex object property assertions in OWL. For example, how might I express "John likes oranges or Mary likes oranges"? In a language like first-order predicate logic, this might be translated…
da71
  • 25
  • 3
2
votes
2 answers

converting json to turtle

I am looking for tools to convert json to turtle format. For example: { "name": "Bart Simpson", "age": "11" } to something like: @base . @prefix rdf: . @prefix rdfs:…
FewKey
  • 152
  • 9
2
votes
1 answer

What does rdfs:domain and rdfs:range mean?

I simply do not understand what either rdfs:domain and rdfs:range mean. I have read what is says here, but it isn't clear enough. If someone could explain it with an example, that would be great.
Jake Jackson
  • 1,055
  • 1
  • 12
  • 34
2
votes
1 answer

Turtle: Difference between "rdf:type" and "a"

I tried to figure out the difference between: <#blabla> rdf:type owl:Class and: <#blabla> a owl:Class Is a just a shortcut for rdf:type?
2
votes
1 answer

RDF : Is it possible to set the range of a property to a literal in Turtle

I m very new to RDF. I want to know if it is ok to write something like this ? a rdf:Property rdfs:domain ; rdfs:range xsd:String ;
2
votes
1 answer

Why does this SPARQL query return certain items as subjects?

I have the following data graph: @prefix hr: . @prefix rdf: . @prefix rdfs: . @prefix sch:
James Hudson
  • 844
  • 6
  • 19
2
votes
1 answer

How to count the number of distinct values, their names and the number of times each appeared per data property SPARQL

I m trying to make a SPARQL query that returns the number of distinct values of each data property of a Turtle file. I would like to know what the name of each value is and how many time each were repeated. I have created a simple ontology to…
DjSh
  • 2,776
  • 2
  • 19
  • 32
2
votes
1 answer

Can SHACL validate JSON-LD containing a list of objects?

I'm looking to validate the following JSON-LD using SHACL: { "@context" : { "day" : { "@id" : "test:day" }, "month" : { "@id" : "test:month" }, "myList" : { "@id" : "test:myList" }, "year" : { …
Jacob G.
  • 28,856
  • 5
  • 62
  • 116
2
votes
1 answer

Upload of TTL by sparql-update queryinto GraphDB fails on diacritics

Upload of turtle data using following bash script: #!/usr/bin/env bash RDF4J_ENDPOINT=endpoint_uri DIR="~/modelio/workspace/IPR/" IFS= FILE=tmp.rq function runUpdateQuery() { cp $1 $FILE sed -i -e "s!__VOC_IRI__!$2!g" $FILE curl…
Meďák
  • 361
  • 1
  • 5
  • 12
2
votes
1 answer

What is the best mapping.ttl file for converting xml file into RDF by using RML-Mapper library?

I am using RML-Mapper library in order to convert xml file into rdf file. For the following xml file, catalogs.xml, I am having troubles to write the best mapping.ttl. My question is, what is the best mapping.ttl file for that specific xml? I…
2
votes
0 answers

How to display ttl dataset as graph of node relationships in ckan

A bit of a newbie question, I can create datasets uploading ttl files, and can visualize a text using webpage_view plugin. What I was wondering if it is possible to visualize a graph of relationships of the triples. I am using Ckan 2.8.2, following…
2
votes
1 answer

Can SHACL express constraints about the entire data scope?

Is it possible to use SHACL to formulate constraints about the entire data scope? For example, can I require the presence of a triple conforming to a certain shape in the data? A code example of what I had in mind: # DEMO code, currently raises an…
2
votes
0 answers

Would it be possible to use SANSA-RDF & SANSA-Query in PySpark?

I am planning to use SANSA-RDF for reading turtle RDF/XML files into Spark and query using SANSA-Query library. Would it be possible to develop PySpark (python) code using theses libraries? Are there any PySpark (python) examples? Thanks in…
sam
  • 101
  • 1
  • 1
  • 6
2
votes
0 answers

Can't load YAGO taxonomy into Protege

I've downloaded Protege 5.2.0 and I tried to open the YAGO taxonomy ontology( YAGOTaxonomy.ttl,YAGOTaxonomy.tsv).Every time i tried to open an ontology I got alot of errors, such that i won't be able to show all of them here. turle…
2
votes
1 answer

MemoryError: Cannot allocate memory -- BDB2034 unable to allocate memory for mutex; resize mutex region

I've created a database based on turtle file (of size ~4.5Gb) using rdflib and started querying it using SPARQL, everything was working smoothly, but after a while I start getting this error: MemoryError: (12, 'Cannot allocate memory -- BDB2034…
Bilal
  • 2,883
  • 5
  • 37
  • 60