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

How can I extract triples from the Freebase dump?

I would like to collect a large knowledge base of triples as: subject, object, predicate, so I downloaded the Freebase dump from the developers page, which contains triples in RDF format, and I want to decode it to a readable format. How can I…
0
votes
0 answers

PluginException: No plugin registered for (.nt, )

I am able to serialize in .ttl format but when I tried serialize the rdf graph in (.nt,.ntriples,.nt11 format) by python. Everytime it is showing error: PluginException: No plugin registered for (.nt, ) using…
0
votes
1 answer

Listing All Classes And Instances from N-triple file with Jena

I am a beginner and want to list all the entities/classes and instance from N-triple file through Jena but I don't know how to do it. Or it is possible to do this with Sparql. I have already load the N-triple file as a JENA model. Model model =…
Khalid Bin Huda
  • 1,583
  • 17
  • 16
0
votes
0 answers

Obtain the most concret type according to DBpedia class hierarchy in N-Triples file

I have a N-Triples file with entity types like this (sample):
user15519921
0
votes
2 answers

Can't save the ontology with NTriples (OWLAPI)

I tried to save my ontology as NTriples format using owlapi. This error appear when I try to save my ontology: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1 at…
slowpoke
  • 19
  • 5
0
votes
1 answer

Transform list items to property - JSONLD

I want to extract RDF from an API and I use jsonld with javascript to do it. The json from the API look like this : "datasetid": "etat-des-stations-le-velo-star-en-temps-reel", "recordid": "88a8871cd455b991aae541e2d60ebdab34840e3e", "fields":…
0
votes
0 answers

MeSH (Medical Subjects Heading) Dataset (mesh.nt) not working in RDFLib Python

I am trying to figure out the loading time, traversal time, and queries response time of RDFLib using MeSH dataset in N-Triple format. I am trying to execute the queries for two days but no luck. Here is the code: import time from rdflib import…
bamboat_3
  • 11
  • 1
  • 6
0
votes
3 answers

How to write a function that transforms a triple ['a','b','c'] into a single string "a b c ."

I need some help with a homework assignment that I've been given for this coming Monday. I'm a beginner at programming and task is for me to write a function that transforms a string such as ['a','b','c'] into something like "a b c." I've been…
Yesch
  • 13
  • 2
0
votes
1 answer

NTriples loading all the data inside Annotation Properties in Protege?

This is my little portion of NTriples: . . . The full code can be seen…
HQuser
  • 640
  • 10
  • 26
0
votes
1 answer

Making changes to a ntriples file with python

Scenario: I just got my hands on a huge ntriples file (6.5gb uncompressed). I am trying to open it and perform some operations (such as cleaning some of the data that it contains). Issue: I haven't been able to check the contents of this file.…
DGMS89
  • 1,507
  • 6
  • 29
  • 60
0
votes
1 answer

Indexing NTriples with Lucene

A part of my project is to index the s-p-o in ntriples and I need some help figuring out how exactly to do this via Java (or other language if possible). Problem statement: We have around 10 files with the extension “.ntriple”. Each file having at…
0
votes
0 answers

Read large data into Model using Jena

I need to load large .nt file into a Model using Jena. RDFDataMgr.read(model, filename); The problem is I a have Java Error Memory. There is any way to load large rdf(nt) data file into Jena Model. Thank's for your help.
beyfort
  • 53
  • 2
  • 10
0
votes
0 answers

Reading RDF file using jena

Folks, I have been working on a project related to semantic web and I really need help right now as I am completely struck while reading RDF N-triples file of noble prize rdf dataset. The dataset is taken from the below links. Nobel prize rdf data…
0
votes
1 answer

How to insert TRIPLES into ML DB as triples, generated by TDE template

I have template which creates triple from XML. Now I want to insert these triples in ML DB as RDF document/triples. Below is the code which I am using to insert the triples but it is inserted as XML doc and not as triples.
Anuj Gupta
  • 31
  • 4
0
votes
0 answers

Parsing owl to ntriples and store them in separate files

Trying To-Do: 1) Execute Rapper functionality for each file in 'data' folder to get ntriples out of owl files. 2) Copy the resultant ntriples into another file as 'ntriples/output_file.ntriples' 3) Command : rapper -o ntriple ./data/file1.owl >…