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
15
votes
2 answers

CONSTRUCT into a named graph

I am attempting to use a SPARQL Construct query to create a new named graph from an existing one. The database I am querying contains http://graph.com/old as an existing named graph. I am using Jena TDB as the database, accessed through a Jena…
Yoav Zimmerman
  • 588
  • 4
  • 11
14
votes
2 answers

What is the SPARQL query to get the name of all graphs existing in my triplestore?

I want to get the name of all existing graphs in my Fuseki server, it should return a message with a list of all graphs name.
user3457185
  • 175
  • 1
  • 1
  • 7
7
votes
1 answer

Most efficient way to clear a named graph?

I am working with an instance of Ontotext GraphDB and often want to clear a named graph with a large number of triples. Currently, my technique involves issuing a SPARQL command to the graph server, which searches and matches a triple pattern of…
hayfreed
  • 525
  • 7
  • 21
5
votes
3 answers

insert from two named graphs?

I'm looking for an easy way to insert triples from two or more named graphs (but not the entire unnamed default graph) into another named graph. I'm using GraphDB. I guess this could be done by writing out the same query multiple times in the WHERE…
Mark Miller
  • 3,011
  • 1
  • 14
  • 34
5
votes
2 answers

Reasoning with Fuseki, TDB and named graphs?

I'm serving a dataset containing 10-20 named graphs from a TDB dataset in Fuseki 2. I'd like to use a reasoner to do inference on my data. The behaviour I'd like to see is that triples inferred within each graph should appear within those graphs…
Johan Nystrom
  • 157
  • 1
  • 9
5
votes
1 answer

tbloader vs SPARQL INSERT - Why different behaviour with named graphs?

There is a strange behaviour in the connection of the commandline tools of ARQ, TDB and Named Graphs. If importing data via tdbloader in a named graph it can not be queried via GRAPH clause in a SPARQL SELECT query. However, this query is possible…
mgraube
  • 380
  • 1
  • 14
5
votes
1 answer

Single quad + most basic SPARQL query = 1 result in Jena, 2 results in Sesame - who is right?

Add just this one quad to an empty store: 2 . Then execute this SPARQL query (taken from per Bob DuCharme's book 'Learning SPARQL', so this must be standard SPARQL for retrieving all quads across…
4
votes
1 answer

Named Graphs and Federated SPARQL Endpoints

I recently came across the working draft for SPARQL 1.1 Federation Extensions and wondered whether this was already possible using Named Graphs (not to detract from the usefulness of the aforementioned draft). My understanding of Named Graphs is a…
William Greenly
  • 3,914
  • 20
  • 18
4
votes
3 answers

select all triples, indicating named graph if relevant

Let's say I make the following insertions into my GraphDB 8.3 triplestore: PREFIX : insert data { :hello a :word } and PREFIX : insert data { graph :farewells { :goodbye a :word }} now, if I ask select…
Mark Miller
  • 3,011
  • 1
  • 14
  • 34
4
votes
3 answers

Alternatives to SPARQL query with lots of UNIONs

I have some named graphs stored in Virtuoso, and I want to find the one that matches the highest number of terms from a provided list. My query is constructed programatically and looks like this: SELECT DISTINCT ?graph (count(DISTINCT ?match) as…
heyitsbmo
  • 1,715
  • 1
  • 14
  • 29
3
votes
2 answers

What does SELECT FROM DEFAULT actually do?

Sparql has a notion of a "default graph" that is queried when no graph context is specified, and which (depending on the triple store) may be the union of proper graphs available in a repository, or it may be a separate, "null graph"; so far so…
alexis
  • 48,685
  • 16
  • 101
  • 161
3
votes
1 answer

How to specify 'named graph' while loading data into graphdb with preload or loadrdf tools?

With GraphDB workbench, it can specify 'named graph' to load RDF. But how to specify a 'named graph' with the command line tools, preload, or loadrdf? Thanks!
LeonL.
  • 105
  • 5
3
votes
1 answer

What does the "identifier" in "Graph" do?

I try to query a database like this: from rdflib import Graph, Literal, URIRef from rdflib.namespace import RDF, SKOS from rdflib.plugins.stores import sparqlstore # define endpoint according to https://www.stardog.com/docs/ endpoint =…
Cleb
  • 25,102
  • 20
  • 116
  • 151
3
votes
2 answers

using contexts for multiple data sets in graphdb repo

I am working on research project in which are studying the success of tooth restoration procedures (i.e., fillings). We are collecting data from a number dental practices, and we are going to aggregate all the data into a GraphDB triple store. My…
Bill
  • 179
  • 8
3
votes
2 answers

How to query a named graph in Apache Jena Fuseki server

I am laoding a .ttl file into the Jena Fuseki server and instead of the default graph I am using the named graph . /home/user/jena-fuseki-1.1.1/./s-put http://192.168.1.38:3030/ds/data http://example/test…
lost Coder
  • 577
  • 2
  • 8
  • 34
1
2 3 4 5