Skip to content
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

Wrong term type in result from Trident #55

Closed
mkroetzsch opened this issue Aug 25, 2020 · 3 comments
Closed

Wrong term type in result from Trident #55

mkroetzsch opened this issue Aug 25, 2020 · 3 comments
Labels

Comments

@mkroetzsch
Copy link
Collaborator

When I query a trident data source from VLog, strings in the RDF data are returned as abstract constants with IRIs. To reporduce:

  • Create a trident database from an RDF file that contains a string literal "string"
  • Use that trident database in VLog as a data source and query for the data.
  • The result should be <"string"> where "string" was expecteed
@mkroetzsch mkroetzsch added the bug label Aug 25, 2020
@CerielJacobs
Copy link
Contributor

CerielJacobs commented Aug 25, 2020 via email

@mkroetzsch
Copy link
Collaborator Author

After some joint debugging, it turned out that the incorrect term in VLog is an untyped string "string" (distinct from the usual version "string"^^xsd:string). Rulewerk wrongly interpreted this type-less constant to refer to an abstract constant. This has been changed in Rulewerk in a recent commit.

This fixes only the appearance in Rulewerk. The string should still be encoded with xsd:string in VLog in order to join correctly with other strings from RDF sources. As it is now, a Trident database built from an RDF file with a string will not join with that same RDF file.

@irina-dragoste
Copy link
Collaborator

Fixed, SPARQL results remain to be tested in open issue knowsys/rulewerk#223.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants