I've used JENA and got the following result in result of query to RDF
file:
<j.0:ResultSe t>
<j.0:solution rdf:parseType=" Resource">
<j.0:binding rdf:parseType=" Resource">
<j.0:value>Jo hn Smith</j.0:value>
<j.0:variable>f name</j.0:variable>
</j.0:binding>
<j.0:binding rdf:parseType=" Resource">
<j.0:variable>x </j.0:variable>
<j.0:value rdf:resource="h ttp://somewhere/JohnSmith/"/>
</j.0:binding>
</j.0:solution>
<j.0:ResultSe t>
I wish it was transformed with XLS into something like this:
<resultset>
<solution>
<fname>John Smith</fname>
<x>http://somewhere/JohnSmith/</x>
</solution>
</resultset>
The main problem is how to match the interior of XML tag (i.e. fname)
and put it into <fname>. Thxn for any help or suggestion,
Maciek.
file:
<j.0:ResultSe t>
<j.0:solution rdf:parseType=" Resource">
<j.0:binding rdf:parseType=" Resource">
<j.0:value>Jo hn Smith</j.0:value>
<j.0:variable>f name</j.0:variable>
</j.0:binding>
<j.0:binding rdf:parseType=" Resource">
<j.0:variable>x </j.0:variable>
<j.0:value rdf:resource="h ttp://somewhere/JohnSmith/"/>
</j.0:binding>
</j.0:solution>
<j.0:ResultSe t>
I wish it was transformed with XLS into something like this:
<resultset>
<solution>
<fname>John Smith</fname>
<x>http://somewhere/JohnSmith/</x>
</solution>
</resultset>
The main problem is how to match the interior of XML tag (i.e. fname)
and put it into <fname>. Thxn for any help or suggestion,
Maciek.
Comment