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

Querying multiple graphs with aggregate Count and graph in results

Is it possible to count the occurrences of triples in multiple named graphs and return the results as rows in a table? Such as: ?g ?count ?sequence_count -------- ------- --------------- graph1 54 54 graph2 120 …
rodney757
  • 553
  • 2
  • 7
  • 21
1
vote
1 answer

SPARQL algebra: tricky ASK from named graphs if any triples do not exist

Take these two named graphs: # graph :yesterday :Foo :likes :Bar ; :likes :Qux . # graph :today :Foo :likes :Bar ; :likes :Baz . Now say you want to find out if any of the triples from graph :yesterday are absent from graph…
Blake Regalia
  • 2,677
  • 2
  • 20
  • 29
1
vote
2 answers

Querying named RDF graphs in TDB using tdbquery

I am trying to query my newly created TDB database use the tdbquery program. However, I am having a hard time writing a query that targets the correct named graph. I am doing the following: First a create a new dataset and add a name graph called…
1
vote
1 answer

Escaping < in graph name SPARQL

I accidentally created a graph with a name that begins with < and ends with >. If I try to clear the graph from the Virtuoso server by -- clear graph -- or -- clear graph <> -- or -- clear graph <\> -- it…
vds
  • 349
  • 1
  • 10
1
vote
1 answer

Can I merge an unknown named graph with an other in a SPARQL query?

I want to query on two different named graphs as the default graph with SPARQL: SELECT * FROM FROM WHERE { ... } My problem is that I don't know the URI of , but I know a specific triple of allowing me to find…
Thibaut Guirimand
  • 851
  • 10
  • 33
1
vote
0 answers

SPARQL 1.1 entailment regimes and query with FROM clause (follow-up)

This is a follow-up question from SPARQL 1.1 entailment regimes and query with FROM clause I'm currently documenting/testing about SPARQL 1.1 entailment regimes and the recommendation repeatedly states that The scoping graph is graph-equivalent to…
Max
  • 685
  • 4
  • 14
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?
0
votes
0 answers

versioning triples with named graphs

I am managing a named graph (multiple resources per named graph pattern) and needs to update the named graph for any changes for versioning graphs. To start with, I have a current version of the named graph. problem statement: whenever I receive a…
Pam
  • 1
  • 1
0
votes
1 answer

Is there anyway to take backup/archive of a named graph data only from aws neptune using python?

Neptune has a feature of snapshot but instead of taking backup for a single named graph, it takes backup of the complete cluster. Is there anyway it can specifically get the backup of give graph name only?(sparql)
0
votes
2 answers

Graph URIs on GraphDB

The SPARQL graph concept is still abstract for me. Are graphs similar to SQL Tables? Does one triple could belong to more than one graph? Is there a way to get the URI of the graph to which belongs a triple? Is there a way to get the URI of every…
Jean-Baptiste
  • 201
  • 1
  • 7
0
votes
0 answers

SPARQL Query Fail: SELECT FROM

I wanted to try out some of the examples in this article, but I get very inconsistent results depending on the SPARQL Query Processor I'm using. I have tried out the most basic example: SELECT DISTINCT ?p FROM…
0
votes
1 answer

Querying named graphs and different SPARQL endpoints

I am quite new to SPARQL so bear with me, please. I am using Apache Jena to store my RDFs in different named graphs, I have these RDF named graphs: Endpoint Name:http://localhost:3030/2012-2013/query Named Graphs:…
Kim Vella
  • 21
  • 4
0
votes
2 answers

How can I get inner join of two graphs in Apache Jena with SPARQL without UNION/FILTER?

I have an Apache Jena based ontology and I have two named graphs in it: m_p p1 pred1 mp1 p2 pred1 mp1 p3 pred1 mp2 p4 pred1 mp2 p5 pred1 mp3 p6 pred1 mp3 and m_p_s mp1 pred2 w:frnd mp1 pred2 …
Jimo
  • 143
  • 2
  • 14
0
votes
0 answers

How to recover the URI of all named graphs with SPARQL?

How to recover the URI of all named graphs with SPARQL? And how can I recover every quad (subject predicate object graph) of my triplestore with SPARQL?
Juan
  • 95
  • 2
  • 5
0
votes
0 answers

Query a named graph but get label from an ontology

My data is partitioned using named graphs. One graph contains my ontology and human-readable labels for classes. The data in turn is divided up into a number of graphs, ex:data1, ex:data2, ... ex:data5000. Now I wish to query each of the data graphs…