Questions tagged [blank-nodes]

Blank nodes are a kind of RDF terms, along with IRIs and literals. The resource represented by a blank node is also called an anonymous resource.

Important quotes from related specifications

From RDF 1.1 Concepts and Abstract Syntax:

Blank node identifiers are local identifiers that are used in some concrete RDF syntaxes or RDF store implementations. They are always locally scoped to the file or RDF store, and are not persistent or portable identifiers for blank nodes.

From RDF 1.1 Semantics:

RDF graphs can be viewed as conjunctions of simple atomic sentences in first-order logic, where blank nodes are free variables which are understood to be existential. Taking the union of two graphs is then analogous to syntactic conjunction in this syntax. RDF syntax has no explicit variable-binding quantifiers, so the truth conditions for any RDF graph treat the free variables in that graph as existentially quantified in that graph. Taking the union of graphs which share a blank node changes the implied quantifier scopes.

From SPARQL 1.1 Query Language:

Blank node labels are scoped to a result set.

There need not be any relation between a label _:a in the result set and a blank node in the data graph with the same label.

An application writer should not expect blank node labels in a query to refer to a particular blank node in the data.

From SPARQL 1.1 Update:

Blank nodes... are assumed to be disjoint from the blank nodes in the Graph Store, i.e., will be inserted with "fresh" blank nodes.

Some discussion

Different triplestores provides solutions for the "problems" described.
E.g., Jena allows to use pseudo-URIs like <_:b1> etc.

89 questions
0
votes
1 answer

SPARQL Multiple Dataset with Blank nodes

I've been learning about sparql lately and confuse about blank nodes. Is blank nodes can be used to linked data from multiple dataset ? Or it is just used for one dataset? then what is the specific usage of this blank nodes? PREFIX dbo:…
0
votes
0 answers

what is the reason for blank nodes in Ontology model that was designed in protege tool

I build an ontology in protege tool which resulting good knowledge representation when seen in webOwl software. But when I listed all triplets using SPARQL query, i was finding huge number of blank nodes. Can any one say the reason. Is there any…
0
votes
0 answers

Blank node and graph

I always faced the problem of adding a blank node and grouping some RDF triples in different RDF graph, for that I would like to ask this question: can we add blank node to an ontology and can we group the RDF triples of an ontology in different RDF…
marco
  • 15
  • 7
0
votes
1 answer

SPARQL Query to delete all blank nodes with in a Resource

I am writing a SPARQL query that should delete all triples within in this resource. prefix oslc: prefix example: prefix xsd: prefix…
0
votes
2 answers

SPARQL queries with blank-nodes as subjects

I have data like this: [ "0.15"^^xsd:float] .
Scaraffe
  • 5,041
  • 5
  • 21
  • 20
0
votes
0 answers

Storing different graphs created by RDFlib that uses the same Bnodes

I created different graphs using RDFLib in python which share the same Bnodes. Each BNode has a specific name. I am trying now to store all the graphs in one graph using 4store and http4store. The problem I am facing is that after adding a graph to…
TJR
  • 15
  • 5
0
votes
2 answers

Virtuoso error: Missing predicate and object between top-level blank node subject and a dot processed pending to here

I'm pushing the following data (blank nodes) to Virtuoso: @prefix ns0: . @prefix ns1: . [ ns0:source ns1:CZ00006947 ; ns0:target …
tobik
  • 7,098
  • 7
  • 41
  • 53
0
votes
1 answer

ARQ query for blank node

I am working on RDF query language. So, I have installed Apache Jena. RDF data is given below: @prefix foaf: . _:a foaf:name "Alice" . _:b foaf:name "Ashish" . And ARQ query is: PREFIX foaf: …
Abhishek Raj
  • 478
  • 7
  • 17
0
votes
1 answer

SPARQL query turtle file with blank nodes in the graph

I'm trying to understand blank nodes in turtle correctly, and I need to know if I have understood them correctly. Suppose we had a turtle file: @prefix sn: <....some uri...> . _:a sn:name "person1"; sn:email "email1@test.com" . _:b sn:name…
Daniel
  • 117
  • 4
0
votes
1 answer

Stop EasyRDF from nesting resources

I have an RDF graph that I create with EasyRDF:
reggie
  • 3,523
  • 14
  • 62
  • 97
0
votes
1 answer

EasyRDF: how to create a blank node and set a rdf:about property?

I am using EasyRdf to create a few nodes in the graph. My problem is that I am trying to create a new blank node and also set an rdf:about property to it that points to the correct resource. $rdf = new EasyRdf_Graph(); $datapoint_resource =…
Daniel Luca CleanUnicorn
  • 1,087
  • 1
  • 12
  • 30
0
votes
1 answer

Protege 4 - Saving RDF reformats nested blank nodes

I just switched from TopBraid to try out Protege. I have an ontology with some RDF that resembles this: instances:some_thing1 a semapi:SomeClass ; semapi:hasChainTo ( [ …
parliament
  • 21,544
  • 38
  • 148
  • 238
-1
votes
1 answer

SPARQL construct/insert query and blank nodes

I'm trying to create a SPARQL query to construct or insert graphs, following the BIBFRAME 2.0 Model, using a personal database with a lot of datas. I want to get a result like this: Subject a bf:Topic, madsrdf:ComplexSubject ; rdfs:label "Subject"…
Wences
  • 71
  • 8
-1
votes
1 answer

RDF/XML: How to omit blank nodes?

AAA This can be omitted like this:
1 2 3 4 5
6