GraphStore`
GraphStore`

RDFCollection

RDFCollection[{e1,e2,}]

represents a list-like collection of the ei in functions like RDFStore and SPARQLSelect.

Details

  • The RDF collection vocabulary includes the following terms:
  • URL["http://www.w3.org/1999/02/22-rdf-syntax-ns#first"]links a collection to its first element
    URL["http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"]links a collection to its rest
    URL["http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"]the empty collection

Examples

open allclose all

Basic Examples  (1)

Specify a graph which lists the favorite fruits of Bob:

Scope  (2)

Specify an RDF graph containing a collection of letters:

Check whether there is any collection that contains three elements:

Retrieve the middle element:

Retrieve all elements:

Specify an RDF graph in two different ways:

The RDF graphs are isomorphic:

Possible Issues  (1)

RDF has no built-in list datatype:

Use an RDF collection instead:

Alternatively, choose a non-list-valued property and assign multiple values to it:

Wolfram Research (2019), RDFCollection, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/RDFCollection.html.

Text

Wolfram Research (2019), RDFCollection, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/RDFCollection.html.

BibTeX

@misc{reference.wolfram_2021_rdfcollection, author="Wolfram Research", title="{RDFCollection}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/RDFCollection.html}", note=[Accessed: 22-June-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_rdfcollection, organization={Wolfram Research}, title={RDFCollection}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/RDFCollection.html}, note=[Accessed: 22-June-2021 ]}

CMS

Wolfram Language. 2019. "RDFCollection." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/RDFCollection.html.

APA

Wolfram Language. (2019). RDFCollection. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/RDFCollection.html