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

Error parsing N-Triple file using RDFlib

I am trying the load the triples from a Linked data dump into my local triplestore using RDFlib. An example triple in my file: "Some detail about the subject"@EN . Snippet of the code: …
RDangol
  • 179
  • 9
0
votes
0 answers

incomplete output in reading N-Triples (.nt) files in Fuseki and SPARQL

I am loading a N-triple(.nt) file in Fuseki and then using SPARQL query to query the data. The N-triple file I am using is - linkedct-dump-2010-02-10.zip at this link. When I view the same file in Protege ontology editor (link here) I see…
user2966197
  • 2,793
  • 10
  • 45
  • 77
0
votes
0 answers

SPARQL queries don't report any results

I reported an issue in the execution of a SPARQL query in Java code using Jena. The ontology is avalaible here (please correct a extra white space at line 798545). After loading an ontology from a N-Triples file on a Jena Model, using Model…
Jul10
  • 503
  • 7
  • 19
0
votes
0 answers

Local sparql endpoint (Loading an n-triples file in jena TDB)

I'm new with using Jena TDB with Java. I'm trying to load an .nt file to create a local sparql endpoint to be able to send locally sparql queries. This is where I got so far : public static final String tdbDirectory = "D:\\TDB"; public static…
ichmode
  • 67
  • 1
  • 10
0
votes
1 answer

Parsing quads with nxparser

I am trying to parse quads with following piece of code using Nxparser in Eclipse. String FileInput="c://ex.nq"; System.out.println("Adding "+FileInput); // use the FileManager to find the input file InputStream in =…
Erwarth
  • 547
  • 6
  • 18
0
votes
1 answer

Using a compact URI in Jena

I'm using Jena to read an ontology and it's working really well so far. Unfortunately I haven't been able to figure out how to use compact uris that I've defined in the model. I've defined the prefixes using the model's setNSPrefix(String prefix,…
endorphins
  • 586
  • 1
  • 4
  • 21
0
votes
2 answers

Why does this python script to write to file abruptly stops?

This small script reads a file, tries to match each line with a regex, and appends matching lines to another file: regex = re.compile(r"
kormak
  • 495
  • 2
  • 5
  • 15
0
votes
0 answers

Virtuoso Bulk Load Error : error 37000 SP029: TURTLE RDF loader

I have loaded a lot of triples as much as 0.9 billion. However, I have found out that there is some error message as below error message: 23:47:14 PL LOG: File /a/b/c/d/e/f/g/h/i/1154148/1154148.nt error 37000 SP029: TURTLE RDF loader, line 14:…
styner
  • 139
  • 2
  • 2
  • 7
0
votes
2 answers

JENA RDF Validation error

I have an RDF file named SEALTriples.nt and I am validating that using the command riot.bat --validate SEALTriples.nt It is throwing the following error: ERROR [line: 15858, col: 82] Bad character encoding When I went to the RDF file the line has…
Som Sarkar
  • 289
  • 1
  • 5
  • 24
0
votes
1 answer

I get trouble with java.lang.NullPointerException while loading n-triple file into a Jena SDB Model

I've a an n-triple file that i need to store it in a database through Jena SDB Model. I've write the following code to do that. But i struggle with a java.lang.NullPointerException that I don't really have any clue about what made it to happen and…
Fopa Léon Constantin
  • 11,863
  • 8
  • 48
  • 82
0
votes
2 answers

How do I parse the following format string?

I have data in following format . Now there are essentially 4 parts in this string: foo bar; property abc; this foo bar; and .. How do I tokenize the above string into these four parts?
frazman
  • 32,081
  • 75
  • 184
  • 269
0
votes
1 answer

how to extract subject (Name) in comparison with predicate from a RDF Triple using sparql

http://www.example.com/teach.rdfs/John http://www.example.com/teach.rdfs#position "Full Professor" http://www.example.com/teach.rdfs/John http://www.example.com/teach.rdfs#course"Math" http://www.example.com/teach.rdfs/John …
A. Rehman Javed
  • 309
  • 2
  • 4
  • 10
-1
votes
1 answer

SPARQL: Return subjects w/ more than one specific type of object

Thanks in advance. I have an issue where merging some work produces two guids for a single subject in my triplestore. I need a way to isolate all of those instances so that I can normalize those guids. I'm new to SPARQL. I've tried returning…
Juston Lantrip
  • 61
  • 1
  • 11
-2
votes
1 answer

Conversion of N-Triples to Cypher Text

I have a dump of N-Triples which I want to convert to Cypher Text, So that it can be loaded into Neo4j Database directly. For simple ontologies like rdf-syntax-ns#type I can convert easily using a script i.e
Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
1 2 3 4
5