Skip to content
mox601 edited this page Dec 14, 2012 · 5 revisions

It's possible to annotate classes with @RDFNamespace.

In this way you can define the instance identifier URI prefix from the class URI, making the following RDF/XML possible:

<?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <Polarity xmlns="http://example.com/" rdf:about="http://mynamespace.com/86866700-c128-4205-963f-7983c5b2189a> <hasName xmlns="http://namespace.com/" rdf:datatype="http://www.w3.org/2001/XMLSchema#string">negative</hasName> </Polarity> </rdf:RDF>

Clone this wiki locally