Third basic abbreviation syntax:
- New fact:
http://www.cs.rpi.edu/~puninj/XMLJ/
is an instance of a WebPage
- rdf:type element adds this new fact
- value of the rdf:type can be used directly as element name
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description about="http://www.cs.rpi.edu/~puninj/XMLJ/">
<rdf:type rdf:resource="http://www.schemas.org/www/Webpage"/>
<dc:creator>John Punin</dc:creator>
<dc:title>Programming XML in Java</dc:title>
<dc:date>2001-04-10</dc:date>
</rdf:Description>
</rdf:RDF>
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:s="http://www.schemas.org/www/">
<s:WebPage about="http://www.cs.rpi.edu/~puninj/XMLJ/">
<dc:creator>John Punin</dc:creator>
<dc:title>Programming XML in Java</dc:title>
<dc:date>2001-04-10</dc:date>
</s:WebPage>
</rdf:RDF>