予備知識
ImportとExport
要素
例題
例
関連項目
GraphStore`
Wolfram Language code:
Wolfram Language code:
Wolfram Language code:
NTriples (.nt)
予備知識
-
- MIMEタイプ:application/n-triples
- RDFグラフのための行ベース形式
- N-Triplesはhttps://www.w3.org/TR/n-triples/に記述されている.
例題
例 (1)
Needs["GraphStore`"]store = ImportString["
<http://example.org/tom> <http://www.w3.org/2000/01/rdf-schema#label> \"Tom\" .
<http://example.org/tom> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> .
<http://example.org/tom> <http://xmlns.com/foaf/0.1/knows> <http://example.org/anna> .
<http://example.org/anna> <http://www.w3.org/2000/01/rdf-schema#label> \"Anna\" .
<http://example.org/anna> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> .
", "NTriples"]ExportString[store, "NTriples"]