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

don't use rdfs:Literal #5

Open
VladimirAlexiev opened this issue Feb 26, 2023 · 1 comment
Open

don't use rdfs:Literal #5

VladimirAlexiev opened this issue Feb 26, 2023 · 1 comment

Comments

@VladimirAlexiev
Copy link

VladimirAlexiev commented Feb 26, 2023

https://semiceu.github.io/MLDCAT-AP/releases/1.0.0/#examples represents strings like this:
"Dr Hans Hofmann"^^rdfs:Literal

Don't use rdfs:Literal since:

  • it's too unspecific, eg XMLLiteral, HTMLLiteral, integer, date, AnyURI are all Literals
  • I'm not even sure it's a valid datatype

Show strings without any datatype, since ^^xsd:string is the default datatype.

@VladimirAlexiev
Copy link
Author

VladimirAlexiev commented Feb 26, 2023

For integers and dates, use the appropriate datatype. Eg instead of:

<http://openml.org/openml/quality/numberofinstances/1>
  oml:value "1000"^^rdfs:Literal ;

you should use

<http://openml.org/openml/quality/numberofinstances/1>
  oml:value "1000"^^xsd:integer ;

These problems stem from the UML model, which uses Literal for all literals, i.e. is not specific enough.
If you cannot fix this, then at least use pure strings, without the ^^rdfs:Literal datatype.

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

No branches or pull requests

1 participant