You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Bardo Nelgen <ma...@bnnperformances.de> on 2018/03/25 14:07:38 UTC

Reciprocal relation output with RDF/XML

Hi all,

is there any insight, if there are reciprocal connections between two 
things (like with dct:references and dct:isReferencedBy), how Jena 
weighs in the one against the other when creating the "pretty" XML 
output from a SPARQL query ?

Currently my results appear to "tilt" from one view to the other, 
obviously somehow depending on the data contained – and thereby 
completely ignoring the hierarchy assumed by the SPARQL‘s "construct" 
section.

Is there any documentation on enforcing a particular "perspective" on 
the result (if possible at all…) ?

The output is to be processed by an XML-based website system – and 
parsing "plain" RDF/XML is not an option there.

As always, any hints are highly appreciated.

Best,

Bardo


Re: Reciprocal relation output with RDF/XML

Posted by Martynas Jusevičius <ma...@atomgraph.com>.
Maybe you should provide some examples?

On Sun, Mar 25, 2018 at 4:07 PM, Bardo Nelgen <
mailing.list.inbox@bnnperformances.de> wrote:

>
> Hi all,
>
> is there any insight, if there are reciprocal connections between two
> things (like with dct:references and dct:isReferencedBy), how Jena weighs
> in the one against the other when creating the "pretty" XML output from a
> SPARQL query ?
>
> Currently my results appear to "tilt" from one view to the other,
> obviously somehow depending on the data contained – and thereby completely
> ignoring the hierarchy assumed by the SPARQL‘s "construct" section.
>
> Is there any documentation on enforcing a particular "perspective" on the
> result (if possible at all…) ?
>
> The output is to be processed by an XML-based website system – and parsing
> "plain" RDF/XML is not an option there.
>
> As always, any hints are highly appreciated.
>
> Best,
>
> Bardo
>
>

Re: Reciprocal relation output with RDF/XML

Posted by Bardo Nelgen <ma...@bnnperformances.de>.
Thank you very much, Dave; especially for the link.

And indeed, "ambitious" appears to be the appropriate term for it… ;-)


On 26.03.18 09.38 Uhr, Dave Reynolds wrote:
> On 25/03/18 15:07, Bardo Nelgen wrote:
>>
>> Hi all,
>>
>> is there any insight, if there are reciprocal connections between two 
>> things (like with dct:references and dct:isReferencedBy), how Jena 
>> weighs in the one against the other when creating the "pretty" XML 
>> output from a SPARQL query ?
>>
>> Currently my results appear to "tilt" from one view to the other, 
>> obviously somehow depending on the data contained – and thereby 
>> completely ignoring the hierarchy assumed by the SPARQL‘s "construct" 
>> section.
>>
>> Is there any documentation on enforcing a particular "perspective" on 
>> the result (if possible at all…) ?
>
> https://jena.apache.org/documentation/io/rdfxml_howto.html#advanced-rdfxml-output 
>
>
>> The output is to be processed by an XML-based website system – and 
>> parsing "plain" RDF/XML is not an option there.
>
> The abbrev format does it's best but if you want the XML stable enough 
> to parse easily then you may be better off with non-abbrev. Even then 
> it's an ambitious goal.
>
> Dave
>
>


Re: Reciprocal relation output with RDF/XML

Posted by Dave Reynolds <da...@gmail.com>.
On 25/03/18 15:07, Bardo Nelgen wrote:
> 
> Hi all,
> 
> is there any insight, if there are reciprocal connections between two 
> things (like with dct:references and dct:isReferencedBy), how Jena 
> weighs in the one against the other when creating the "pretty" XML 
> output from a SPARQL query ?
> 
> Currently my results appear to "tilt" from one view to the other, 
> obviously somehow depending on the data contained – and thereby 
> completely ignoring the hierarchy assumed by the SPARQL‘s "construct" 
> section.
> 
> Is there any documentation on enforcing a particular "perspective" on 
> the result (if possible at all…) ?

https://jena.apache.org/documentation/io/rdfxml_howto.html#advanced-rdfxml-output

> The output is to be processed by an XML-based website system – and 
> parsing "plain" RDF/XML is not an option there.

The abbrev format does it's best but if you want the XML stable enough 
to parse easily then you may be better off with non-abbrev. Even then 
it's an ambitious goal.

Dave