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
3
votes
1 answer

SPARQL query which triggers Stardog rules

I'm trying out a custom Stardog rule. The custom rule basically looks like the following: @prefix rule: . [] a rule:SPARQLRule ; rule:content """ PREFIX : IF { ?x a :Person; :has_yob ?yob. …
tstorms
  • 4,941
  • 1
  • 25
  • 47
3
votes
2 answers

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 the active graph but it does not specifies what is the active graph referring to : is it…
Max
  • 685
  • 4
  • 14
3
votes
1 answer

Generate Graph with sub-Graphs using sparql

I have the following situation in my RDF-store: Named Graph: A S1 P1 O1 Named Graph: B S2 P2 O1 Named Graph: C S3 P3 O1 I now want to define a SPARQL Query which finds all Graphs where O1 is in the tripples, and stores those 3 Graphs + the…
misterxyz
  • 31
  • 3
3
votes
1 answer

sesame rdfstore named graphs

I am using sesame HTTP api with its in-memory rdf store. I load data/triples in a context/named graph I query using named graph/context I have 2 questions: In the same repository, can a graph node be shared across different named graphs? My use…
gaurav jain
  • 1,267
  • 8
  • 20
  • 36
2
votes
1 answer

What's the correct way to code a named graphs where the main graphs contains a triple that refers to the main graph and also displays the named graph?

I'm using Python with the help of the rdflib import to convert a knowledge graph that is in rdf format into a named graph format. I also wanted to add a triple where the named graph is claimed to be said by a source that is within the main graph,…
CJ Acosta
  • 21
  • 1
2
votes
0 answers

GraphDB duplicating triples into nil graph before inferring with OWL2-RL ruleset - how can I prevent this?

So this is my first question on this board, please forgive me if it is naive. Basically, it seems to me that the reasoning engine of GraphDB takes all triples inside named graphs and duplicates them within the nil graph, and then proceeds to make…
almotasim
  • 21
  • 2
2
votes
2 answers

What is a 'dataset' in the context of a SPARQL query?

The SPARQL specification mentions that the FROM clause can be used to specify a dataset. A SPARQL query may specify the dataset to be used for matching by using the FROM clause and the FROM NAMED clause to describe the RDF dataset. What is a…
Zach Smith
  • 8,458
  • 13
  • 59
  • 133
2
votes
0 answers

SPARQL: Converting CONSTRUCT Query w/ Named Graph to SELECT Query

You are not able to specify a GRAPH in a CONSTRUCT query with SPARQL 1.1 CONSTRUCT { GRAPH { ?s rdf:type ?o . } } WHERE { GRAPH { ?s rdf:type ?o . } VALUES (?o) { () () } } I will refer to the query…
Neil Graham
  • 593
  • 1
  • 5
  • 17
2
votes
1 answer

Retrieving triples from a named graph using the graph store API

I am trying to retrieve all the statements from a named graph (the name is a URI) within a repository using the Graph Store HTTP Protocol. I am using version 8.10 GraphDB installation on Windows 10. The installation reports the API's availability…
gbd
  • 31
  • 1
2
votes
1 answer

Setting to query only Default Graph and exclude Named Graphs

In the GraphDB documentation, I see that "the dataset’s default graph contains the merge of the database’s default graph AND all the database named graphs." This means that "if a statement ex:x ex:y ex:z exists in the database in the graph ex:g"…
hayfreed
  • 525
  • 7
  • 21
2
votes
1 answer

SPARQL query works in Fuseki but not in Jena TDB

I have my data organised in multiple graphs. The graph in which a triple is saved matters. The data structure is complicated but it can be simplified like this: My store contains cakes, where there's a hierarchy of different cake types, all…
casualcoder
  • 480
  • 4
  • 17
2
votes
1 answer

SPARQL Insert Into New Graph

I'm new to SPARQL/graph databases and am trying to insert some data into a new named graph in my graph database. INSERT { GRAPH graphs:new_graph { ?code groups:memberOfGroup graphs:personGroup } } where {?code a obib:CRID . ?code obib:denotes…
hayfreed
  • 525
  • 7
  • 21
2
votes
2 answers

Is the speed of retrieving a query result affected by using named graphs?

I am using Sesame server for storing sets of triples. First question I would like to know if the repository grows huge over time and I want to run queries over it, will speed performance be affected? Second question (if the answer for the first…
whitefang1993
  • 1,666
  • 3
  • 16
  • 27
2
votes
1 answer

Named Graph Support in MarkLogic

I am not understanding how FROM NAMED graph is supported in MarkLogic. I am experimenting with SPARQL queries to find which collection the triples are coming from. The result is really confusing. For example: select * FROM FROM…
Alex W
  • 3,283
  • 1
  • 19
  • 25
1
vote
1 answer

GraphDB clear automatically duplicate triples?

I have a question about how graphDB work with multiples graphs in the same repository: If 2 different graphs has the same triples, the graphDB keep the 2 triples (duplicated) or clean?