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
70
votes
14 answers

What's a RDF triple?

In layman's terms, what's a RDF triple?
jade
  • 977
  • 1
  • 9
  • 8
11
votes
3 answers

Java n-triple RDF parsing

I want to parse an RDF file which is in n-triple form. I can write my own parser but I would rather use a library, and Jena seems unecessarily complicated for this purpose (or at least I can't see their docs explaining how to read n-triples in a…
Ankur
  • 50,282
  • 110
  • 242
  • 312
8
votes
1 answer

N-Quad graphs - how do I use them?

I downloaded a bunch of data from Nature in the form of N-Quads, .nq files. These contain RDF graphs, right? How do I access this data, and how can I translate RDF graphs into a more usable format (preferably something like Boost or igraph for…
jclancy
  • 49,598
  • 5
  • 30
  • 34
7
votes
1 answer

loading rdf triples into virtuoso opensource

I'm trying to create a local mirror of LinkedGeoData.org from this dump. That's around 61,000,000 triples. Virtuoso is supposed to easily handle a lot more than that, but every single time it stops loading after around 40,000,000 triples. I'm using…
ailnlv
  • 1,779
  • 1
  • 15
  • 29
4
votes
0 answers

Can NetworkX library read RDF data in Ntriple format and build a Graph object along with attributes or node features

Can NetworkX library read RDF data in Ntriple format and build a Graph object along with attributes or node features. I tried the below code to convert the RDF data(.nt file) in to Graph using the rdflib, from rdflib.extras.external_graph_libs…
Mahek
  • 71
  • 3
4
votes
2 answers

Querying Open Data Communities Data with SPARQL

I'm trying to get some information from the Lower Layer Super Output Areas (LSOAs) and UK Postcodes datasets. I need the postal code and lsoa information in a data dump for excel use. Notation and Label of type 'Lower Layer Super Output…
4
votes
1 answer

Parsing large NTriples File Python

I am trying to parse a rather large NTriples file using the code from Parse large RDF in Python I installed raptor and the redland-bindings for python. import RDF parser=RDF.Parser(name="ntriples") #as name for parser you can use ntriples, turtle,…
ejang
  • 3,982
  • 8
  • 44
  • 70
3
votes
2 answers

Are schema:domainIncludes and rdfs:domain (as well as schema:rangeIncludes and rdfs:range) the same?

Schema.org both defines and uses the predicates named domainIncludes and rangeIncludes to relate types to properties (i.e. and ). However in RDF…
Ben Werner
  • 64
  • 6
3
votes
0 answers

Could not initialize class org.apache.jena.riot.system.RiotLib error while running SANSA-Stack/SANSA-Examples

I am trying to run SilviaClusteringExample in SANSA-Stack/SANSA-Examples(https://github.com/SANSA-Stack/SANSA-Examples) I have setup the Spark cluster using GCP DataProc with one Master Node and 3 worker nodes. As per the instructions given, ran…
Mahek
  • 71
  • 3
3
votes
1 answer

N-triples IRI prefix jena

I want to use prefix to represent this nt file: . "a"…
Alex Kid
  • 45
  • 3
3
votes
1 answer

Arbitrary strings considered acceptable as references in RDF N-Triples?

In the W3C RDF 1.1 N-Triples doc, the IRIREF production used for non-literal subject/object/predicates is defined pretty much as just a string inside angle brackets (<>) [1], even though it's called an IRI. Is this why some example files [2] have…
justincc
  • 103
  • 2
  • 6
3
votes
1 answer

What is the advantage of N-Triples over CSV for storing RDF triples?

N-Triples is a line based serialization format for an RDF graph. Each line represents the subject, predicate and object of an RDF Triple separated by whitespace and ended with a dot like:
asmaier
  • 11,132
  • 11
  • 76
  • 103
3
votes
1 answer

Parsing N-Triples Via Streaming

I was fairly confused about this for some time but I finally learned how to parse a large N-Triples RDF store (.nt) using Raptor and the Redland Python Extensions. A common example is to do the following: import…
ejang
  • 3,982
  • 8
  • 44
  • 70
3
votes
1 answer

notation 3 URI to RDF/XML

I'm trying to convert an n3 file to rdf/xml through rdf:about converter. Unfortunately some URIs have special characters like: . -> gene:01.01.01 % -> gene:fog2/zfpm2 | -> gene:17867|203045 and the convertor note this examples as a…
3
votes
3 answers

Does the order of the triples in a sparql query affect the result?

I'm making an sparql query using pellet and I'm getting different results according to the order of the triples in the query, it's that correct? For example, given the following N-Triples data input:
j0hn
  • 31
  • 2
1
2 3 4 5