RDF Post Office Box modeling
Hi I have Addresses开发者_StackOverflow information that include P.O Box number , how can I model RDF/XML representation for this P.O Box , is there any VCARD properties for this ??
I will appreciate any examples
Thanks
Yes, have a look at ...
Representing vCard Objects in RDF
You'll find pretty much all what you need in there. The document is full of examples to follow step by step. There are some more examples in RDF vCard Examples
Edit to clarify on the PO Box predicate
To represent PO Box information if you see the ontology you have the following ObjectProperty
:
<owl:DatatypeProperty rdf:about="http://www.w3.org/2006/vcard/ns#post-office-box">
<rdfs:label>P.O. Box</rdfs:label>
<rdfs:comment>The post office box of a postal address</rdfs:comment>
<rdfs:domain rdf:resource="http://www.w3.org/2006/vcard/ns#Address"/>
</owl:DatatypeProperty>
Since the domain is Address, any subject were this predicate is applied will be considered an Address. An example:
<v:adr>
<rdf:Description>
<v:post-office-box>YOUR PO BOX CODE</v:post-office-box>
<rdf:type rdf:resource="http://www.w3.org/2006/vcard/ns#Address"/>
</rdf:Description>
</v:adr>
Use RDF VCARD ADR property.
ADR Post Office Box Pobox
Extended Address Extadd
Street Address Street
Locality Locality
Region Region
Postal Code Pcode
Country Country
here you can use Pobox
精彩评论