-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imported_from seems to break ask-queries with SPARQL-backend #5527
Comments
Update: The test query above works after purging the page and the iri replacement within the SPARQL query seems fine, so But when I set the displaytitle to ImportedFromTestPageDisplayTitle with "results": {
"Category:ImportedFromTestPageDisplayTitle": {
"printouts": {
"Imported from": []
},
"fulltext": "Category:ImportedFromTestPageDisplayTitle",
"fullurl": "https://demo.open-semantic-lab.org/wiki/Category:ImportedFromTestPageDisplayTitle",
"namespace": 14,
"exists": "",
"displaytitle": ""
}
}, so the actual title gets replaced with the display title and fulltext points to a non-existing page which leads to errors in any consumer. Sandbox works fine: Looking at the logs it looks like the actual title gets replaced in the SQL queries by the display title after the SPARQL query was executet:
|
Update: The actual errors occurs here for self-queries (e. g.
SemanticMediaWiki/src/Exporter/DataItemMatchFinder.php Lines 136 to 163 in 13c7bbe
But since the {"options":null,"value":"ImportedFromTestPage#14##","_type_":"SMW\\DIWikiPage","sortkey":null,"contextReference":null,"pageLanguage":null,"id":0} already contains correct DB_KEY and namespace, a lookup in the triplestore is maybe not needed at all. SemanticMediaWiki/src/Exporter/DataItemMatchFinder.php Lines 52 to 70 in 13c7bbe
|
Setup
Issue
[[Imported from::...]]
statements seem to break ask-queries when a SPARQL-backend is used.I asume this is due to the change from the local IRI (/id/<title>) to the imported one (e. g. foaf:Person) as primary identifier.
Steps to reproduce the observation:
[[Imported from::foaf:Person]]
statement, e. g. ImportedFromTestPage[[Imported_from::foaf:Person]]
, e. g. https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[Imported_from::foaf:Person]]The text was updated successfully, but these errors were encountered: