此範例顯示的樹狀結構是由一個稱為 parent 的根和一個稱為 child 的單一子項所組成。此範例使用的 ID 是簡式字串。 通常,會使用較長、唯一的不透明值。(匯入時會儲存及傳送不透明值,但不試圖解譯它們)。
下列 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"
].
匯入完成之後,按一下檢視頂層產品鏈結,以查看所匯入的頂層產品,如下列影像所示。
