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

mw.data.representation Missing OWL DataRestrictions #505

Open
amedranogil opened this issue Apr 6, 2019 · 4 comments
Open

mw.data.representation Missing OWL DataRestrictions #505

amedranogil opened this issue Apr 6, 2019 · 4 comments

Comments

@amedranogil
Copy link
Member

amedranogil commented Apr 6, 2019

There aren't specialised TypeRestrictions (maybe TypeMap too) for:

  • owl:real (maybe Double restrictions apply)
  • owl:rational (maybe Double restrictions apply)
  • xsd:decimal
  • xsd:nonNegativeInteger (maybe Integer restrictions apply)
  • xsd:nonPositiveInteger(maybe Integer restrictions apply)
  • xsd:positiveInteger (maybe Integer restrictions apply)
  • xsd:negativeInteger (maybe Integer restrictions apply)
  • xsd:short (maybe Integer restrictions apply)
  • xsd:byte (maybe Integer restrictions apply)
  • xsd:unsignedLong (maybe Long restrictions apply)
  • xsd:unsignedInt (maybe Integer restrictions apply)
  • xsd:unsignedShort (maybe Integer restrictions apply)
  • xsd:unsignedByte (maybe Integer restrictions apply)
  • xsd:normalizedString (maybe String restrictions apply)
  • xsd:token (maybe String restrictions apply)
  • xsd:language (or is it?)
  • xsd:Name (maybe String restrictions apply)
  • xsd:NCName (maybe String restrictions apply)
  • xsd:NMTOKEN (maybe String restrictions apply)
  • xsd:hexBinary (maybe Base64Binary restrictions apply)
  • xsd:dateTime
  • xsd:dateTimeStamp (maybe dateTime restrictions apply)

Missing Facets:

  • Pattern (string/IRI)
  • TotalDigits (Decimal) (my bad, this is defined in OWLAPI but not OWL2)
  • FractionDigits (my bad, this is defined in OWLAPI but not OWL2)
  • LangRange
@amedranogil
Copy link
Member Author

check quick reference for Built-in Datatypes, and default facets of OWL2.

@cstockloew
Copy link
Member

see TypeMapper:

xsd:nonNegativeInteger : class NonNegativeInteger
xsd:language : Java class Locale is used
xsd:dateTime : Java class XMLGregorianCalendar is used
xsd:decimal : Java class BigDecimal is used

@amedranogil
Copy link
Member Author

xsd:nonNegativeInteger : class NonNegativeInteger

Will current integer restrictions work?

xsd:language : Java class Locale is used

so it is there! we also have a languaje ontology which might be redundant!

xsd:dateTime : Java class XMLGregorianCalendar is used

we still are missing the min/max inclusive/exclusive restrictions for this datatype.

xsd:decimal : Java class BigDecimal is used

will current Integer restrictions work? I guess we need to extend it to be able to use them there.

@cstockloew
Copy link
Member

xsd:nonNegativeInteger : class NonNegativeInteger

Will current integer restrictions work?

Probably not, because Integer != NonNegativeInteger

xsd:decimal : Java class BigDecimal is used

will current Integer restrictions work? I guess we need to extend it to be able to use them there.

Probably not, because Integer != BigDecimal

xsd:dateTime : Java class XMLGregorianCalendar is used

we still are missing the min/max inclusive/exclusive restrictions for this datatype.

yes

xsd:language : Java class Locale is used

so it is there! we also have a languaje ontology which might be redundant!

And we also have the class org.universAAL.middleware.rdf.LangString ;-)

I don't think they are redundant (maybe parts of it), because they are used in different contexts. Consider the 2 examples

  1. define that a person is speaking a language
    foo:Paul bar:speaks "english"

  2. provide a Sting in different languages
    LightSource rdf:label "light source"@en, "Lichtquelle"@de;

The first one needs a definition of languages at ontological level (your language ont). The second one is part of RDF serialization (props set with LangString).

Maybe the use of Locale could be reviewed, especially since it only defines a very restricted set of languages..

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

2 participants