You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to extract all statements about ontology terms that are rdfs:isDefinedBy a certain ontology, so as to provide them to LLM for the purposes of SPARQL generation. We want to use DESCRIBE because it traverses blank nodes, so it takes care of patterns like this:
but DESCRIBE of a class C is problematic, since in rdf4j, DESCRIBE returns the symmetric CBD (SCBD), i.e. all incoming and outgoing props of the node. So it returns all instance triples "X a C". We can filter them out with some post-processing, but in a large database fetching those instance triples takes a long time (just to discard them afterwards).
Preferred solution
Add some feature to control DESCRIBE. The following databases do it with hint:Query:
Problem description
We want to extract all statements about ontology terms that are
rdfs:isDefinedBy
a certain ontology, so as to provide them to LLM for the purposes of SPARQL generation. We want to use DESCRIBE because it traverses blank nodes, so it takes care of patterns like this:Preferred solution
Add some feature to control DESCRIBE. The following databases do it with
hint:Query
:Another option could be to use FROM with a special named graph.
Are you interested in contributing a solution yourself?
None
Alternatives you've considered
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: