RDFBlankNode["id"]
represents a blank node with identifier "id" in an RDFStore .
RDFBlankNode[]
represents a blank node which is different from all other nodes.
RDFBlankNode
RDFBlankNode["id"]
represents a blank node with identifier "id" in an RDFStore .
RDFBlankNode[]
represents a blank node which is different from all other nodes.
Details and Options
- Blank nodes are scoped to RDF datasets: A blank node with the same "id" in different graphs of the same RDF dataset represents the same node. Blank nodes in different RDF datasets are unrelated.
Examples
open all close allBasic Examples (1)
Needs["GraphStore`"]A blank node with label "abc":
RDFBlankNode["abc"]Represent the age of the universe:
ex[s_] := URL["http://example.org/" <> s];RDFStore[{
RDFTriple[ex["universe"], ex["age"], RDFBlankNode["a123"]],
RDFTriple[RDFBlankNode["a123"], ex["value"], 13800000000],
RDFTriple[RDFBlankNode["a123"], ex["unit"], ex["years"]]
}]Scope (1)
Needs["GraphStore`"]Create a graph that asserts the existence of persons with a particular age and name:
foaf[s_] := URL["http://xmlns.com/foaf/0.1/" <> s];
ex[s_] := URL["http://example.org/" <> s];personStore = RDFStore[{
RDFTriple[RDFBlankNode["a"], foaf["firstName"], "Rosalie"],
RDFTriple[RDFBlankNode["a"], ex["age"], 39],
RDFTriple[RDFBlankNode["b"], foaf["firstName"], "Wolfgang"],
RDFTriple[RDFBlankNode["b"], ex["age"], 67]
}];Query names and corresponding ages:
personStore//SPARQLSelect[{
RDFTriple[SPARQLVariable["person"], foaf["firstName"], SPARQLVariable["name"]],
RDFTriple[SPARQLVariable["person"], ex["age"], SPARQLVariable["age"]]
} -> {"name", "age"}]See Also
Related Guides
Text
Wolfram Research (2019), RDFBlankNode, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/RDFBlankNode.html.
CMS
Wolfram Language. 2019. "RDFBlankNode." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/RDFBlankNode.html.
APA
Wolfram Language. (2019). RDFBlankNode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/RDFBlankNode.html
BibTeX
@misc{reference.wolfram_2026_rdfblanknode, author="Wolfram Research", title="{RDFBlankNode}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/RDFBlankNode.html}", note=[Accessed: 16-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_rdfblanknode, organization={Wolfram Research}, title={RDFBlankNode}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/RDFBlankNode.html}, note=[Accessed: 16-August-2026]}