SemWeb - Semantic Web Technologies

Transkrypt

SemWeb - Semantic Web Technologies
SemWeb - Semantic Web Technologies
Sprawozdanie 2
Tomasz Ibrom
EIS
1. (ad 1.2)
Zaokrąglone elementy grafu reprezentują opisywane obiekty, a prostokątne elementy
reprezentują literały – wartości liczbowe, znakowe itp. Różnica pomiędzy tymi typami
elementów polega na tym, że obiekty mogą być dalej opisywane (poprzez kolejne trójki),
natomiast literały stałe wartości, które służą między innymi do opisu obiektu.
2. (ad 1.3)
Obiekty oznaczone genid:A15816 i genid:A15815 przedstawiają nienazwane w pliku
rdf obiekty reprezentujące osoby. W pliku rdf zdefiniowane zostały obiekty typu Person oraz
powiązania pomiędzy nimi lecz dla tych obiektów nie ustawiono rdf:ID, które to parser sam
wygenerował (stąd „genid”).
3. (ad 2.5)
4. (ad 3.2.5)
Format *.ttl:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix bb: <http://yourname/b-and-b#>.
<http://yourname/b-and-b#LA>
bb:Name "Los Angeles";
bb:placed_in bb:CALI.
<http://yourname/b-and-b#FF>
bb:Name "Forester Family";
bb:live_in bb:LA.
<http://yourname/b-and-b#CALI>
bb:Name "California".
<http://yourname/b-and-b#EF>
bb:Name "Eric";
bb:founder_of bb:FC;
bb:husband_of bb:SD;
bb:member_of bb:FF.
<http://yourname/b-and-b#SD>
bb:Name "Stephanie";
bb:wife_of bb:EF;
bb:founder_of bb:FC;
bb:children bb:CHL001.
<http://yourname/b-and-b#FC>
bb:Name "Forester Creations".
<http://yourname/b-and-b#RF>
bb:Name "Ridge".
<http://yourname/b-and-b#TF>
bb:Name "Thorne".
<http://yourname/b-and-b#KF>
bb:Name "Kirsten".
<http://yourname/b-and-b#FeF>
bb:Name "Felicia".
<http://yourname/b-and-b#CHL001>
rdf:first bb:RF;
rdf:rest bb:CHL002.
<http://yourname/b-and-b#CHL002>
rdf:first bb:KF;
rdf:rest bb:CHL003.
<http://yourname/b-and-b#CHL003>
rdf:first bb:TF;
rdf:rest bb:CHL004.
<http://yourname/b-and-b#CHL004>
rdf:first bb:FeF;
rdf:rest rdf:nil.
Format *.rdf:
<?xml version="1.0"?>
<rdf:RDF xmlns:bb="http://yourname/b-and-b#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntaxns#">
<rdf:Description rdf:about="http://yourname/b-and-b#EF">
<bb:Name>Eric</bb:Name>
<bb:founder_of rdf:resource="http://yourname/b-and-b#FC" bb:Name="Forester Creations"
/>
<bb:husband_of>
<rdf:Description rdf:about="http://yourname/b-and-b#SD">
<bb:Name>Stephanie</bb:Name>
<bb:wife_of rdf:resource="http://yourname/b-and-b#EF" />
<bb:founder_of rdf:resource="http://yourname/b-and-b#FC" />
<bb:children>
<rdf:Description rdf:about="http://yourname/b-and-b#CHL001">
<rdf:first rdf:resource="http://yourname/b-and-b#RF"
bb:Name="Ridge" />
<rdf:rest>
<rdf:Description rdf:about="http://yourname/band-b#CHL002">
<rdf:first
rdf:resource="http://yourname/b-and-b#KF" bb:Name="Kirsten" />
<rdf:rest>
<rdf:Description
rdf:about="http://yourname/b-and-b#CHL003">
<rdf:first
rdf:resource="http://yourname/b-and-b#TF" bb:Name="Thorne" />
<rdf:rest>
<rdf:Description
rdf:about="http://yourname/b-and-b#CHL004">
<rdf:first
rdf:resource="http://yourname/b-and-b#FeF" bb:Name="Felicia" />
<rdf:rest
rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" />
</rdf:Description>
</rdf:rest>
</rdf:Description>
</rdf:rest>
</rdf:Description>
</rdf:rest>
</rdf:Description>
</bb:children>
</rdf:Description>
</bb:husband_of>
<bb:member_of>
<rdf:Description rdf:about="http://yourname/b-and-b#FF">
<bb:Name>Forester Family</bb:Name>
<bb:live_in>
<rdf:Description rdf:about="http://yourname/b-and-b#LA">
<bb:Name>Los Angeles</bb:Name>
<bb:placed_in rdf:resource="http://yourname/b-andb#CALI" bb:Name="California" />
</rdf:Description>
</bb:live_in>
</rdf:Description>
</bb:member_of>
</rdf:Description>
</rdf:RDF>