Describe query's result #868
-
Hi everybody, I have the following question related to using how could I make the query describe also the objects that are blank or unnamed node? Considering the following simple tripels: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.com> .
ex:a a ex:b;
ex:c ex:d;
ex:e [
a ex:f;
ex:a ex:m
];
. The results to describe the resource
What I wish it to have is to return also what does PS: Fuseki returns the description of objects of triples if it is from kind blank nodes as well. Thanks a lot in advance for answering and for the great job of comunica :) Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
The problem with My recommendation would be to use Using a |
Beta Was this translation helpful? Give feedback.
-
applying the following DESCRIBE ?o {
?s ?p ?o .
FILTER(isBlank(?o))
} on these dummy triples: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.com/> .
ex:a a ex:b;
ex:c ex:d;
ex:e [
a ex:f;
ex:v ex:m ;
]
. I'm getting the following results:
I'm wondering why the the subjects here have different labels? They shouldn't be the same? |
Beta Was this translation helpful? Give feedback.
The problem with
DESCRIBE
is that it's not very strictly defined in the SPARQL spec. So executing the sameDESCRIBE
query in different engines may produce different results.My recommendation would be to use
CONSTRUCT
queries instead, as you can specifically define the template of triples you want to produce.Using a
CONSTRUCT WHERE
, andFILTER
to check for blank nodes, it should be possible to drill down on blank node entities. (I don't have a query at hand for this though)