Questions tagged [n-triples]

For questions related to N-Triples: a plain text serialization format for RDF and a subset of the Turtle serialization format. N-Triples files usually have the extension ".nt".

Specification

Related specifications

N-Triples should not be confused with the Notation3 () format.

74 questions
1
vote
1 answer

RDF for software libraries?

Are there RDF schemas, ontologies for software libraries? Let's say I'm a Lisp programmer familiar with quicklisp. Or I'm a C programmer using numerical packages. Or a MS programmer using DLLs. Has any software libraries like these been "semantic…
147pm
  • 2,137
  • 18
  • 28
1
vote
0 answers

Invalid characters and other problems in RDF knowledge graphs

I've been processing some older versions of some medium and large sized knowledge graphs in N-Triples and Turtle format, such as: a 2012 version of Freebase a 2015 version of Wikidata a 2017 version of LinkedBrainz etc They all seem to contain…
andrefs
  • 555
  • 4
  • 14
1
vote
1 answer

Unflatten JSON objects with indices / deserialize n-triples to hierarchical Excel

I have parsed JSON+LD (structured) data from the tool Screaming Frog. The format this tool exports the data in is unworkable as the parent/child relationship (cross-reference) is not on one row in Excel. Edit: this serialized format is called…
1
vote
1 answer

Freebase data dump query entities and relations

From the Freebase dump available here, I need to find the relation between two entities. Eg. entity1 = "barack_obama" entity2 = "USA" get_relation_from_freebase(entity1, entity2) -> "President" As of 2018, is there a straightforward way to…
holmes840
  • 1,063
  • 2
  • 11
  • 24
1
vote
1 answer

Using Jena to convert an owl file to N-Triples from terminal returns an empty file

I have generated an owl file using this generator http://swat.cse.lehigh.edu/projects/lubm/ I want to transform the file in N-triples and have done it before using $ riot -out N-TRIPLE ~/lubm20/*.owl > lubm20.nt for some reason now I get an empty…
zaranaid
  • 65
  • 1
  • 13
1
vote
1 answer

Protege can't manage a quite large ontology

I have to study a given quite large ontology represented with a triple store, to understand what kind of content is represented and how it's organized. I'm working with Protege 5.2.0 on a Windows 10 machine equipped with a Intel Core i7-6500U and 8…
Jul10
  • 503
  • 7
  • 19
1
vote
0 answers

error while converting from nt to rdf/xml format in Jena

What is the meaning of the following error message: I am attempting to convert the dogfood.nt to its rdf/xml representation form, what does the StackOverflow message indicate ?
J_r.ny
  • 11
  • 2
1
vote
1 answer

Using RDFLib to extract non RDF data as RDF data from webpages

I recently installed the RDFLib to work with RDF data. I want to extract RDF data from any webpage with non-RDF/RDF data, like Virtuoso Sponger [like this link does]…
Shivansh Singh
  • 151
  • 1
  • 7
1
vote
1 answer

How to merge RDF subjects with same properties summing their values?

Given the following triples: s1 nameProperty "Bozo" s1 laughProperty "Haha" s1 valueProperty "2.00"^^xml:double s2 nameProperty "Clown" s2 laughProperty "hehe" s2 valueProperty "3.00"^^xml:double s3 nameProperty "Bozo" s3 laughProperty "Haha" s3…
Matoe
  • 2,742
  • 6
  • 33
  • 52
1
vote
1 answer

jena typed literals & language annotations - how to ommit it when exporting?

i'm reading RDF documents from an InputStream, as follows (scala syntax): def foo(rdfData: InputStream, dialect: String = null) = { require(List("RDF/XML", "N-TRIPLE", "TURTLE", "TTL", "N3", "RDF/XML-ABBREV").contains(dialect) || dialect == null) …
gilad hoch
  • 2,846
  • 2
  • 33
  • 57
1
vote
1 answer

SQL query/table to RDF

Does anyone know of a tool/project which can convert SQL data to RDF triples? There is a document here which states how to do it http://www.w3.org/TR/2011/WD-rdb-direct-mapping-20110324/, but I was hoping there would be some PHP (or other)…
1
vote
2 answers

SIREn N-Tuples Results

Is it possible in SIREn to work with N-Tuples values(by names) in the SolrDocument? I want to parse query results without regexp of the response string. Something like: SolrDocument.getField("ntriple","name"); // get "Jim Maple" value for…
GML-VS
  • 1,101
  • 1
  • 9
  • 34
0
votes
0 answers

NoClassDefFoundError while trying to use NxParser

I am trying to read a N-Triples (.nt) DBpedia file with NxParser, but I had the following error, and I don't know what to do. Exception in thread "main" java.lang.NoClassDefFoundError: org/semanticweb/yars/nx/parser/NxParser$1 at…
0
votes
0 answers

How to open and parse large n-triple file with Python?

I want to create a large list of person names and for this reason I downloaded a n-triple file from the KB Yago4. I used the Python library RDFLib and this code: from rdflib.graph import Graph g = Graph() g.parse("yago_data.nt", format="nt") But I…
joey11235
  • 53
  • 1
  • 7
0
votes
0 answers

How to acces/find RDF files from retailers

I need to make a shopbot using RDF files. I've looked on what are rdf files, and how are they used, and that is kinda clear, that they are a standard model that follows an ontology to display a catalog of items/data. But I cant find where, or how,…
Daniel
  • 1