[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [rdf4j-dev] Query bnode
|
Without the <> you no longer reference the bnode stored in the underlying store with id _:bnode1, but instead query for any node, blank or not.
What I want to do is query for a specific blank node.
It’s a fairly useful thing to want to do. Fetch the bnode identifier from the database and use it in a sparql query later.
Håvard
> On 15 Feb 2019, at 20:33, Bart Hanssens (BOSA) <bart.hanssens@xxxxxxxxxxxx> wrote:
>
> Hi,
>
> Uhm, haven't tested it, but doesn't it just works without the < > ?
>
> select * where { _:bnode1 ?b ?c }
>
> Best regards
>
> Bart
>
> -----Original Message-----
> From: rdf4j-dev-bounces@xxxxxxxxxxx <rdf4j-dev-bounces@xxxxxxxxxxx> On Behalf Of Håvard Ottestad
> Sent: vrijdag 15 februari 2019 20:27
> To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>
> Subject: [rdf4j-dev] Query bnode
>
> Hi,
>
> I’m wondering if there is a way of querying a bnode?
>
> I’m used to the following working from working with Stardog:
>
> select * where {<_:bnode1> ?b ?c}
>
> Any way of doing something similar in rdf4j directly? I realised that the SHACL sail is fairly broken when working with bnodes because of its use of SPARQL.
>
> Cheers,
> Håvard
> _______________________________________________
> rdf4j-dev mailing list
> rdf4j-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/rdf4j-dev
> _______________________________________________
> rdf4j-dev mailing list
> rdf4j-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/rdf4j-dev