mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
Fix exception caused by restrictions in OWL (#8341)
Description: Fix exception caused by restrictions in OWL Issue: #8331 Dependencies: none Maintainer: @baskaryan
This commit is contained in:
parent
cddd8ae83d
commit
b2e4b9dca4
@ -32,7 +32,14 @@ cls_query_rdfs = prefixes["rdfs"] + (
|
||||
"""}"""
|
||||
)
|
||||
|
||||
cls_query_owl = cls_query_rdfs
|
||||
cls_query_owl = prefixes["rdfs"] + (
|
||||
"""SELECT DISTINCT ?cls ?com\n"""
|
||||
"""WHERE { \n"""
|
||||
""" ?instance a/rdfs:subClassOf* ?cls . \n"""
|
||||
""" FILTER (isIRI(?cls)) . \n"""
|
||||
""" OPTIONAL { ?cls rdfs:comment ?com } \n"""
|
||||
"""}"""
|
||||
)
|
||||
|
||||
rel_query_rdf = prefixes["rdfs"] + (
|
||||
"""SELECT DISTINCT ?rel ?com\n"""
|
||||
|
Loading…
Reference in New Issue
Block a user