Re: Sparquling an entire collection (rdf:List) -- Anyone ?

2017-05-17 Thread Bardo Nelgen


Yes, I already did, earlier, thank you.

It just turned out, I obviously had copied-over an inappropriate 
namespace URI (http://www.w3.org/2000/10/swap/list#) for the "list" 
prefix from another (obviously wrong…) example I had tried before.


Now set that straight.

Thanks again.

Regards,

Bardo







On 17.05.17 15.23 Uhr, Bardo Nelgen wrote:


Hello,

is there no-one around who has tried this ?

Best,

Bardo


On 15.05.17 10.41 Uhr, Bardo Nelgen wrote:


Hi all,

in advance – sorry for coming up with such basic question here on the 
list, but I simply could not find any suitable instruction on the topic:


How do I retrieve *all* values (i.e. „objects“) from an rdf:List 
(a.k.a. RDF Collection) at once via SPARQL (on Fuseki) ?   Don’t 
necessarily need the blank or in-between nodes; just the values.


Any pointer or reference where to look this up is highly appreciated.

Regards,

Bardo









Re: Sparquling an entire collection (rdf:List) -- Anyone ?

2017-05-17 Thread Martynas Jusevičius
Have you looked on StackOverflow?

https://stackoverflow.com/questions/10162052/rdfcollection-in-sparql

On Wed, May 17, 2017 at 3:23 PM, Bardo Nelgen
 wrote:
>
> Hello,
>
> is there no-one around who has tried this ?
>
> Best,
>
> Bardo
>
>
> On 15.05.17 10.41 Uhr, Bardo Nelgen wrote:
>>
>>
>> Hi all,
>>
>> in advance – sorry for coming up with such basic question here on the
>> list, but I simply could not find any suitable instruction on the topic:
>>
>> How do I retrieve *all* values (i.e. „objects“) from an rdf:List (a.k.a.
>> RDF Collection) at once via SPARQL (on Fuseki) ?   Don’t necessarily need
>> the blank or in-between nodes; just the values.
>>
>> Any pointer or reference where to look this up is highly appreciated.
>>
>> Regards,
>>
>> Bardo
>>
>>
>


Re: Sparquling an entire collection (rdf:List) -- Anyone ?

2017-05-17 Thread Bardo Nelgen


Hello,

is there no-one around who has tried this ?

Best,

Bardo


On 15.05.17 10.41 Uhr, Bardo Nelgen wrote:


Hi all,

in advance – sorry for coming up with such basic question here on the 
list, but I simply could not find any suitable instruction on the topic:


How do I retrieve *all* values (i.e. „objects“) from an rdf:List 
(a.k.a. RDF Collection) at once via SPARQL (on Fuseki) ?   Don’t 
necessarily need the blank or in-between nodes; just the values.


Any pointer or reference where to look this up is highly appreciated.

Regards,

Bardo






Re: Sparquling an entire collection (rdf:List)

2017-05-16 Thread Bardo Nelgen


Thanks a lot to both of you.

Are you sure these given procedures work with non-blank connection-nodes 
as well; let’s say if you write the Collection explicitly as described 
in the good old RDF Primer:


https://www.w3.org/TR/2004/REC-rdf-primer-20040210/#collections

Each of the blank nodes forming this list structure is implicitly of 
type |rdf:List| (that is, each of these nodes implicitly has an 
|rdf:type| property whose value is the predefined type |rdf:List|)…


It appears the RDF Collection is not being recognized anymore, as soon 
as I move away from blank node syntax…


At least the Fuseki output cascade implies the connecting nodes being 
handled as some unknown idifferent types, rather than being displayed as 
a series of rdf:List members…


Or did I probably miss something here ?

— Bardo



On 15.05.17 10.41 Uhr, Bardo Nelgen wrote:


Hi all,

in advance – sorry for coming up with such basic question here on the 
list, but I simply could not find any suitable instruction on the topic:


How do I retrieve *all* values (i.e. „objects“) from an rdf:List 
(a.k.a. RDF Collection) at once via SPARQL (on Fuseki) ?   Don’t 
necessarily need the blank or in-between nodes; just the values.


Any pointer or reference where to look this up is highly appreciated.

Regards,

Bardo






Re: Sparquling an entire collection (rdf:List)

2017-05-15 Thread james anderson
good afternoon;

> On 2017-05-15, at 10:41, Bardo Nelgen  
> wrote:
> 
> 
> Hi all,
> 
> in advance – sorry for coming up with such basic question here on the list, 
> but I simply could not find any suitable instruction on the topic:
> 
> How do I retrieve *all* values (i.e. „objects“) from an rdf:List (a.k.a. RDF 
> Collection) at once via SPARQL (on Fuseki) ?   Don’t necessarily need the 
> blank or in-between nodes; just the values.
> 
> Any pointer or reference where to look this up is highly appreciated.

this post gives you some ways in sparql to approach various operations on lists 
:

http://www.snee.com/bobdc.blog/2014/04/rdf-lists-and-sparql.html

in particular, the idiom for enumeration involves a kleen-star path.

best regards, from berlin,
---
james anderson | ja...@dydra.com | http://dydra.com







Re: Sparquling an entire collection (rdf:List)

2017-05-15 Thread Lorenz B.
As far as I remember, Jena has some custom built-ins to handle lists in
RDF very easy [1]

PREFIX list: 
SELECT ?member {
?x :p ?list . # Some way to find the list
?list list:member ?member .
}

The magic predicate is list:member

[1] https://jena.apache.org/documentation/query/extension.html



>
> Hi all,
>
> in advance – sorry for coming up with such basic question here on the
> list, but I simply could not find any suitable instruction on the topic:
>
> How do I retrieve *all* values (i.e. „objects“) from an rdf:List
> (a.k.a. RDF Collection) at once via SPARQL (on Fuseki) ?   Don’t
> necessarily need the blank or in-between nodes; just the values.
>
> Any pointer or reference where to look this up is highly appreciated.
>
> Regards,
>
> Bardo
>
>
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center