此示例显示一个树,由称为父代的根组成,并且具有称为子代的单一子代。此示例中使用的标识为简单字符串。通常,将使用较长的唯一不透明值。(导入将存储和传输不透明值,但不会尝试对其进行解释。)
已通过导入产品屏幕导入以下 Turtle 文件。
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix pd_ext: <http://jazz.net/ns/pd/extensions#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<>
pd_ext:product _:resource1 ;
pd_ext:product _:resource2 .
_:resource1
dcterms:identifier "abcd" ;
dcterms:title "parent" ;
pd_ext:conceptIdentifier "item1" ;
pd_ext:property [
dcterms:title "weight" ;
rdf:value "1.6"
];
pd_ext:property [
dcterms:title "material" ;
rdf:value "steel"
];
dcterms:references <https://machine1:9443/workItem/3456> ;
pd_ext:childIdentifier "efgh" .
_:resource2
dcterms:identifier "efgh" ;
dcterms:title "child" ;
pd_ext:conceptIdentifier "item2" ;
pd_ext:dimensionValuePair [
pd_ext:dimensionTitle "geo" ;
pd_ext:shared "true" ^^xsd:boolean ;
rdf:value "uk"
];
pd_ext:dimensionValuePair [
pd_ext:dimensionTitle "volts" ;
rdf:value "230"
].
完成导入之后,单击查看顶级产品链接以查看已导入的顶级产品,如下图中所示。
