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
0 answers

Connecting GATE gazzeetteer_lkb to geonames remote repository

I am trying to configure gazzetteer_lkb with geonames.com remote repository so I can perform global location lookups. I need help to correctly configure the config.ttl and query.txt files Config.ttl needs to be a valid Turtle RDF format? Also I am…
FJ1993
  • 115
  • 1
  • 8
2
votes
1 answer

How to construct RDF using Data Cube Vocabulary with SPARQL

I have CSV data set and I want to construct RDF using Data Cube Vocabulary. Now I have triplifier, which constructs "regular" RDF with tarql: PREFIX data1: PREFIX data2: PREFIX xsd:…
Alex
  • 350
  • 5
  • 20
2
votes
3 answers

Apache Jena - Is it possible to write to output the BASE directive?

I just started using Jena Apache, on their introduction they explain how to write out the created model. As input I'm using a Turtle syntax file containing some data about some OWL ontologies, and I'm using the @base directive to use relative URI's…
svalbuena
  • 21
  • 1
  • 3
2
votes
1 answer

How does rdf reification work when the object is a bNode?

RDF reification is pretty straightforward as long as subject, predicate and object are IRIs (or the object a literal). But what does the rdf:Statement look like when the object is a blank node (bNode)? An example ("I saw a man in a dirty…
LarsG
  • 33
  • 1
  • 6
2
votes
1 answer

OWL RDF/TTL Make an instance member of class based on property

I am trying to design an ontology that will categorise products based on the products components. In the example below I have a class Ingredient with an instance eggs. I want to add apple_tart to all classes of products that do not contain eggs. So…
David
  • 1,034
  • 11
  • 20
2
votes
1 answer

Reasoner sets two different classes equivalent to each other and owl:Thing

I am working on an ontology for video games for an university course project, specifically focused on the relations between different genres. I have included this ontology in my project and expanded on it. The current state of the OWL document is…
5ar
  • 2,069
  • 10
  • 27
2
votes
2 answers

CLI tool ala csvsql for SPARQL and TTL, n3, ... files - Hello World example for teaching purposes

EDIT: to make this question more specific. Please provide "hello world" example of executing sparql query over .ttl file locally on Linux using tool of your choice. csvsql allows to query .csv files directly (i.e., without importing) via SQL; for…
2
votes
1 answer

In XQuery, How to keep the string output content from translate to entity?

I grab some data from XML and translate it to Turtle/N3. I want to add @prefix and namespace URLs at the beginning. The original XML is something like: ... ... I write the XQuery: declare…
Mayoco
  • 87
  • 1
  • 10
2
votes
1 answer

Text Representation of RDF with turtle

I want to make a textual representations of an RDF graph with Turtle. As an example the relation between Spiderman and the Green Goblin. See the reference here https://www.w3.org/TR/turtle/ @base . @prefix rdf:…
Mchoeti
  • 536
  • 1
  • 8
  • 24
2
votes
2 answers

Automatically add records with incremental values in RDF

I want to record anonymous users 'liking' records: user:1 vocab:likes record:123234 . user:2 vocab:likes record:124534 . Is there a way to add incremental values in rdf/turtle without explicitly stating them?
significance
  • 4,797
  • 8
  • 38
  • 57
2
votes
2 answers

How to use SPARQL query to get field and field count at the same time?

I am new to Semantic Web and SPARQL. I am making a RDFS of concert. It has songs entries like: con:song04 rdfs:Class con:Repertoire; rdfs:label "Deewani Mastani"; con:performedBy con:artist02. con:performedBy con:artist05. I am…
2
votes
0 answers

D2R Server-Sparql Join with-generate-mapping DB MySQL

I have to do a join from this 2 tables, on the field ID_CLIENTI. These tables, on MySQL DB, are mapped with generate-mapping on D2R Server in a turtle file. Table CLIENTI map:CLIENTI a d2rq:ClassMap; d2rq:dataStorage map:database; d2rq:uriPattern…
2
votes
2 answers

RDF document metadata

I have a software that generates an RDF representation of certain dataset. I want to add to the generated data also some metadata describing not specific data contained in the data set but the document itself - i.e., when the document was created,…
StasM
  • 10,593
  • 6
  • 56
  • 103
2
votes
1 answer

RDF Turtle syntax - How to reduce code duplication?

I am having the following valid Turtle Syntax: @prefix rdf: . @prefix sc: . @prefix rdfs: . @prefix geo:…
Wosh
  • 1,565
  • 2
  • 17
  • 30
2
votes
1 answer

How to represent commas inside QNames (esp. in Turtle documents)

Can one form QNames from URIs such as http://dbpedia.org/resource/Jesuit_Church,_Mannheim? Dbpedia lists this as dbpedia:Jesuit_Church,_Mannheim, but when I run this QName e.g. through Jena's Turtle parser, I get the following exception: Not a valid…
Drux
  • 11,992
  • 13
  • 66
  • 116