Contenu connexe
Similaire à RDF Transformations
Similaire à RDF Transformations (20)
RDF Transformations
- 2. graphthinking
Using XSLT to process RDF(/XML)?
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="file:///home/fo/tmp/griffins.ttl#">
<foaf:Person rdf:about="file:///home/fo/tmp/griffins.ttl#peter"
foaf:familyName="Griffin" foaf:givenName="Peter">
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#brian"/>
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#chris"/>
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#lois"/>
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#megan"/>
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#stewie"/>
</foaf:Person>
</rdf:RDF>
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="file:///home/fo/tmp/griffins.ttl#">
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
</rdf:Description>
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<foaf:givenName>Peter</foaf:givenName>
</rdf:Description>
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<foaf:familyName>Griffin</foaf:familyName>
</rdf:Description>
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#lois"/>
</rdf:Description>
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#megan"/>
</rdf:Description>
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#chris"/>
</rdf:Description>
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#stewie"/>
</rdf:Description>
<rdf:Description rdf:about="file:///home/fo/tmp/griffins.ttl#peter">
<foaf:knows rdf:resource="file:///home/fo/tmp/griffins.ttl#brian"/>
</rdf:Description>
</rdf:RDF>
And anything inbetween...