I've a RDF that has multiple resources in it that I'm generating from my data model. Because each resource is added (concatenated) separately, I've multiple prefixes (when in N3). It looks something like this:
@prefix dc: <someURL>.
<someURL/Tony_Benn>
dc:title "Tony Benn";
dc:publisher "Wikipedia".
@prefix dc: <someURL>.
<someURL/Someone_Else>
dc:title "Someone Else";
dc:publisher "Wikipedia".
I am using Jena API to create the RDF but I've written a wrapper around the API to keep it disjoint. Is there a better way to approach this problem or is there a way to remove the duplicate prefixes?