Questions tagged [n-quads]

For questions related to N-Quads: a line-based, plain text format for encoding an RDF dataset, a superset of N-Triples, primarily designed for representing named graphs. N-Quads files usually have the extension ".nq".

Specification

Related specifications

17 questions
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
4
votes
1 answer

Convert .nq (N-QUAD) file to .ttl (TURTLE)?

Currently there are many tools for RDF file type conversion. RDF2RDF, EasyRDF, and rrdf in R has some conversion functionalities. However, NONE of these conversion tools include converting .nq files to the other file types (.nt, .ttl, .rdf, .xml,…
lrthistlethwaite
  • 494
  • 2
  • 6
  • 23
3
votes
0 answers

Remove invalid N-Quads from file in Jena

I have a file containing N-Quads (using the schema.org vocabulary) and I want to load it into a TDB RDF-store, using Apache Jena's command line tools. The command that I'm using is: tdbloader --loc But during the…
myName
  • 41
  • 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
2
votes
2 answers

How to source statments with neoj4 graph database?

I'm looking forward to use NeoJ4 for some researchs. However I have to check if it can do what I want first. I would like to build a graph that says : StatementID1 = Cannabidiol hasPositiveEffectOn ChronicPain StatementID1 isSupportedBy Study1 …
Xiiryo
  • 3,021
  • 5
  • 31
  • 48
2
votes
0 answers

Unicode encoding error with Python rdflib output

I am using rdflib to parse CommonCrawl microdata. It is a big N-Quads format file. Everything is fine except the very last stage of saving to a CSV file or printing to the terminal, as it fails with encoding errors. My current code is: import…
samiles
  • 3,768
  • 12
  • 44
  • 71
1
vote
1 answer

Converting RDF triples to quads from command line?

Is there a way to convert N-Triples to N-Quads, or Turtle to TriG, by specifying named graph URI as the parameter? Preferably using riot or rapper.
1
vote
0 answers

Add graph information when serializing from JSON-LD to N-Quads

I have some JSON-LD objects that I want to serialize to N-Quads, but I can't figure out how to add the graph information to the JSON-LD. This is an example of the JSON-LD I have: { 'name':u'Meppel', 'classification':u'Municipality', …
voodoo-burger
  • 2,123
  • 3
  • 22
  • 29
1
vote
1 answer

Split all the different graphs included in a n-quads file

I have a big n-quads file with a lot of statements included in a big number of different graphs The lines of the file are as follow :
Alexis Pister
  • 449
  • 3
  • 13
1
vote
1 answer

can property graph be transformed into a RDF dataset?

We know that neo4j and Titan use property graph as their data model, which is more complicate and flexible than RDF. However, my team is building a graph database named gStore which is based on RDF datasets. gStore can not support N-Quads or…
bookug
  • 11
  • 3
1
vote
0 answers

SPARQL queries not working for loaded N-Quads dataset in Fuseki2

In Fuseki2 I can load n-quads dataset without any problem but the sparql queries not working. A basic simple query given below also not giving any result SELECT ?subject ?predicate ?object WHERE { ?subject ?predicate ?object } LIMIT 25 But for…
Rilfi
  • 19
  • 2
1
vote
1 answer

Less stringent N-Quads parsing in Sesame

The Sesame parser for N-Quads is rather strict (generally not a bad thing!). In addition to parsing IRI terms according to [10] it also implements requirement [2] (both from the N-Quads 1.1 specification). [1] IRIREF ::= '<'…
Wouter Beek
  • 3,307
  • 16
  • 29
0
votes
0 answers

How can I optimize a 4D integral computation in quantum computing using TensorFlow Quantum and Numpy?

Hello I am new to programming I want to solve this 4 dimensional integral import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fftn, fftshift, ifftn, ifftshift from numpy import cos, sin, pi w_0 = 388 * 1e-6 *1e6 Q =28.74 *…
0
votes
1 answer

Exploring AnzoGraph as an alternative for Transactional RDF Workloads

Let's say my application needs to regularly persist knowledge generated by users in RDF format, preserving ACID transaction properties (with the begin and end of the transaction being controlled by my application). In other words, I need to be able…
Elton
  • 25
  • 3
0
votes
1 answer

how create named graphs in GraphDB?

how create named graphs in GraphDB? Is it necessary to change the format de rdf file from triples to n-quads through tools (like RDFLib or Apache Jena) or is there an easier way?
1
2