I need to create an RDF that looks like this:
<rdf:Description rdf:about='uri1'>
<namespace:level1>
<rdf:Description>
<namespace:blankNode rdf:resource='uri2'/>
<namespace:text></namespace:text>
</rdf:Description>
</namespace:level1>
</rdf:Description>
<rdf:Description rdf:about="uri2">
some properties here
</rdf:Description>
As you can see, there are nested structures as well as empty nodes. (I do not know if this exact terminology is for the "blankNode" property in my structure.) If I use
model.write(System.out, "RDF/XML-ABBREV");
then even an empty node is nested, which I don't want. Is there any way to get such a structure using yen? Or is there another library for Java that can handle this better?
source
share