Hi:
We are trying to generate a set of consistent XML documents using the
"RDF/XML-ABBREV" format.
Our problem is dealing with resources having multiple RDF types and selecting a
given type to be used as the typed node in an RDF/XML serialization. It seems
that the RDF/XML writer selects randomly which type to use.
We attempted to use the "prettyTypes" property [1] to control the output but
this seems only to affect the sort order and not the selection of which RDF
type to use.
Ideally we would like to generate XML of the form:
...
<ex:A rdf:about="...">
...
<rdf:type rdf:resource="{ex:B}"/>
...
</ex:A>
...
where RDF type ex:A is used for the typed node in preference to RDF type ex:B.
Is this even possible within the Jena API?
(This is important to us in treating these RDF/XML documents within an XML
context (where element naming is preserved) rather than just using RDF/XML as a
transfer syntax.)
Thanks,
Tony
[1]
http://jena.apache.org/documentation/io/rdfxml_howto.html#advanced-rdfxml-output
********************************************************************************
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and
attachments (if any). No contracts may be concluded on behalf of Macmillan
Publishers Limited or its agents by means of e-mail communication. Macmillan
Publishers Limited Registered in England and Wales with registered number
785998
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS
********************************************************************************