GraphStore`
GraphStore`

RDFStore

RDFStore[{t1,t2,}]

represents an RDF graph with triples ti.

RDFStore[{t1,t2,},name1{s11,s12,},]

represents an RDF dataset with default graph consisting of the triples ti and named graphs consisting of the triples sij with names namei.

更多信息和选项

  • RDF stands for Resource Description Framework.
  • Resources are identified by IRIs.
  • Statements about resources are made with triples RDFTriple[subj, pred, obj] where subj is the subject to be described, pred is the predicate and obj is the value.
  • Subjects, predicates and objects are typically IRIs or blank nodes. Objects can also be literals like strings, numbers and Booleans.
  • When querying an RDF dataset using SPARQLSelect[pattern] then pattern is matched against the default graph. SPARQLSelect[SPARQLGraph[name,pattern]] can be used to match pattern against the graph named name.

范例

打开所有单元关闭所有单元

基本范例  (1)

Introduce vocabulary helper functions:

Represent information about Albert Einstein:

Look up the properties used:

Look up the name and birth date:

Export in the "Turtle" format:

Scope  (2)

Represent information about countries:

Find the population of Spain:

Data about all countries:

Look up data by Wikidata ID:

Country data with current data in the default graph and historical data in graphs named after the year:

Find the current population of all countries in the default graph of the dataset:

Access historical population data of Spain:

Properties & Relations  (2)

Data about people:

Create a Graph with subject-object pairs as edges and predicates as edge labels:

Specify a Graph and label each edge with a property name:

Convert the graph to an RDF graph:

Wolfram Research (2019),RDFStore,Wolfram 语言函数,https://reference.wolfram.com/language/GraphStore/ref/RDFStore.html.

文本

Wolfram Research (2019),RDFStore,Wolfram 语言函数,https://reference.wolfram.com/language/GraphStore/ref/RDFStore.html.

CMS

Wolfram 语言. 2019. "RDFStore." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/RDFStore.html.

APA

Wolfram 语言. (2019). RDFStore. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphStore/ref/RDFStore.html 年

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_rdfstore, organization={Wolfram Research}, title={RDFStore}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/RDFStore.html}, note=[Accessed: 22-November-2024 ]}