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

Issue with avg. untyped String literal length measure #60

Closed
LorenzBuehmann opened this issue Jul 2, 2018 · 0 comments
Closed

Issue with avg. untyped String literal length measure #60

LorenzBuehmann opened this issue Jul 2, 2018 · 0 comments
Assignees
Milestone

Comments

@LorenzBuehmann
Copy link
Member

https://github.com/SANSA-Stack/SANSA-RDF/blob/2669c80a1dbdcfc419897d1b51877b4fb0ddd38d/sansa-rdf-spark/src/main/scala/net/sansa_stack/rdf/spark/stats/RDFStatistics.scala#L256-L261

this code will not work because since RDF 1.1 - which is default mode in Apache Jena - every literal has a datatype. Previous untyped literals (aka plain literals) now do have the datatype rdf:langString. That's also the reason why in the unit test it always returns 0.0 although the data contains e.g.

<http://example.org/show/218> <http://example.org/show/localName> "That Seventies Show"@en . # literal with a language tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants