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

Type de donnée pour les durées #34

Open
ccecconi opened this issue Sep 27, 2018 · 3 comments
Open

Type de donnée pour les durées #34

ccecconi opened this issue Sep 27, 2018 · 3 comments
Assignees
Labels

Comments

@ccecconi
Copy link

Nous nous interrogeons sur le type de données que nous devons associer au range des propriétés décrivant des durées.
Il s'agit de data properties mais de quel type : integer, date ou string ?
Ex : U53 has duration. U78 estimated duration, etc.

@rtroncy
Copy link
Contributor

rtroncy commented Sep 27, 2018

Formellement, le rdfs:range de la propriété U53 est ecrm:E54_Dimension (bizarrement, la propriété U78 n'a pas de range, est-ce normal ?), ce qui veut dire, une string, l'habitude étant d'écrire une valeur et une unité.

Je propose donc d'utiliser une string et de spécifier l'unité dedans. En général, les durées sont exprimées comment dans vos données ? En secondes toujours ?

@pasqLisena
Copy link
Contributor

pasqLisena commented Sep 28, 2018

We currently use xsd:dayTimeDuration (how to use).

It is standard and it should be compatible with queries (not tested yet).


Query

SELECT * WHERE {
     ?s (mus:U53_has_duration|mus:U78_estimated_duration) ?o 
} LIMIT 1000

Example: http://data.doremus.org/manifestation/ac72da98-b754-3ccf-bb1b-63ed3d086362 (look at the N3/turtle visualisation, there is a bottom button for this). 25 minutes, 43 seconds

<http://data.doremus.org/manifestation/ac72da98-b754-3ccf-bb1b-63ed3d086362>
    mus:U53_has_duration  "PT25M43S"^^xsd:dayTimeDuration .

@rtroncy
Copy link
Contributor

rtroncy commented Sep 28, 2018

Right, now I remember we have discussed this @pasqLisena :-) From my point of view, this issue can be closed.

The documentation of the ontology may further describe that our implementation of the property ecrm:E54_Dimension for the properties mus:U53_has_duration and mus:U78_estimated_duration has been to use xsd:dayTimeDuration.

We also need to add formally the rdfs:range of the property mus:U78_estimated_duration. I'm taking this action.

@rtroncy rtroncy self-assigned this Sep 28, 2018
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