Questions tagged [named-graphs]

Named graph is a set of RDF triples identified using a URI. This identification allows to segregate that sets, or to provide some contextual or provenance metadata.

Specification

63 questions
1
vote
1 answer

Sparql query to read from all named graphs without knowing the names

I am looking to run a SPARQL query over any dataset. We dont know the names of the named graphs in the datasets. These are lots of documentation and examples of selection from named graphs when you know the name of the named graph/s. There are…
Harper2021
  • 23
  • 5
1
vote
1 answer

SPARQL query for merging RDF Data Cubes

I'm engaging in a project that stores 2 RDF Data Cubes: Climate Data Cube : humidity-dataset, rainfall-dataset, temperature-dataset Industry Data Cube : industry-dataset Both data cubes are stored on GraphDB Database as named graphs. Each dataset…
Rio Vo
  • 23
  • 3
1
vote
1 answer

Neo4j persistent named graph

I'm coming from the RDF world where named graphs are persistent and can be used like a collection of triples. Moreover you can query against one single named graph or over the whole triplestore. I'm looking for the same features (or a workaround to…
Alessio
  • 187
  • 7
1
vote
0 answers

Clearing a named graph in GraphDB free is slow

Clearing a named graph with many triples through rdf4j with clear(context) function is slow. Even, manually deleting a named graph through the graphdb interface http://localhost:7200/graphs is slow. I tried to play with the JVM memory according to…
zoe vas
  • 281
  • 9
  • 25
1
vote
1 answer

Reasoning when adding new triples in a named graph in Jena Fuseki

I'm trying to use Jena Fuseki's API to create a FusekiServer using an OWL model, wrapped in a Dataset. I would like to make OWL inferences happen when adding new triplets to this Dataset (using SPARQL) while still being able to create named…
mgc
  • 5,223
  • 1
  • 24
  • 37
1
vote
0 answers

How can I move filtered triples from one graph to other?

I am using jena-fuseki server. Suppose for example my default graph has the following triples. @prefix bprefix: bprefix:title71 a bprefix:Title ; bprefix:fromCountry bprefix:UnitedStates ; …
Raghav Rathi
  • 95
  • 10
1
vote
1 answer

SPARQL query GRAPH unions in-memory?

I was reading a book where I came across this line: "The SPARQL FROM clause provide another way to define custom union graphs. The FROM clause is used to identify the default graph for a query. The most typical use is to identify a single RDF graph.…
Siddharth Trikha
  • 2,648
  • 8
  • 57
  • 101
1
vote
1 answer

SPARQL: Number of Statements in each Named Graph

The following query returns the number of statements in a repository: SELECT (COUNT(*) AS ?count) WHERE { ?s ?p ?o } Is there a way to return the number of statements for each Named Graph? This following query does not work, only an…
Neil Graham
  • 593
  • 1
  • 5
  • 17
1
vote
1 answer

AllegroGraph SPARQL: DELETE from both the Default Graph and Named Graphs

Using AllegroGraph 6.4.6 I am trying to generate a single SPARQL DELETE query w/ respect to quads defined: // Example of dataset used for generation of SPARQL const quads = [ ['<1>','<2>','<3>'], // Graph: DEFAULT …
Neil Graham
  • 593
  • 1
  • 5
  • 17
1
vote
1 answer

SPARQL: Querying the Default Graph

With the RDF query language SPARQL, I'm trying to find a way to do a boolean query (or any other query) for anything not in a Named Graph. ASK { GRAPH null { ?s ?p ?o } } Can't find really any documentation on searching specifically within an empty…
Neil Graham
  • 593
  • 1
  • 5
  • 17
1
vote
1 answer

transform my rdf file to a named graph file

For a project I have to use Apache Jena as an API and Blazegraph as a triple store, I am trying to program a code that allows me to transform my dataset (N-Triples File) to a file that contains the NamedGraph of each statement. String APIUrl =…
Meed095
  • 63
  • 7
1
vote
1 answer

SPARQL multi graph request and sort (Virtuoso 7)

Is it possible to easily make a CONSTRUCT request where I would be able to check data in different graphs AND sort them by "graph preference"? Let's say I sell products. For each product, I may have different suppliers, so that my setup would look…
1
vote
1 answer

Loading and querying default and named RDF graphs in Openlink Virtuoso

I am quite new to OpenLink Virtuoso, and I have some questions regarding loading RDF graphs and executing SPARQL queries against them through Java and Virtuoso Jena Provider. I have installed Virtuoso version 06.01.3127 on a PC running Ubuntu 16.04…
theo
  • 15
  • 3
1
vote
1 answer

Using SPARQL to find the graphs in triple-store

I've been using the following SPARQL query to find the graphs in a triple-store: select distinct ?g where { graph ?g {?s ?p ?o} } This seems inefficient. Is there a better way?
Bill
  • 179
  • 8
1
vote
1 answer

From and From Named Graph in SPARQL

I am getting a confusion related to FROM and FROM NAMED graphs in SPARQL. I did read the specifications relating to these two construct in the SPARQL Specifications. I just want to confirm my understanding. Suppose an RDF Dataset is located at IRI…
user2202810