-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: Add time value type #1403
Conversation
- Update OntologyV2R2RSpec. - Update RDF4J.
- Fix code that searches for decimal values.
It does, and I did. :StandoffTimeTag rdf:type owl:Class ;
rdfs:subClassOf :StandoffDataTypeTag,
:TimeBase ;
rdfs:comment "Represents a timestamp in a TextValue"@en .
:TimeBase rdf:type owl:Class ;
rdfs:subClassOf :ValueBase ,
[ rdf:type owl:Restriction ;
owl:onProperty :valueHasTimeStamp ;
owl:cardinality "1"^^xsd:nonNegativeInteger
] .
:valueHasTimeStamp rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :valueHas ;
:subjectClassConstraint :TimeBase ;
:objectDatatypeConstraint xsd:dateTime . |
I can try and check this in the afternoon if you want |
Yes please. I based the mapping element on the existing one for the date tag, and I can't find anything that looks different. |
Found the bug... |
Fixed more bugs by adding the test with a standoff timestamp tag (f70fe6c). |
With which release should this be integrated? |
It's not going into today's release. It could go into next month's release. Let's talk about this process at tomorrow's meeting. |
Ok! I would like to assign related PRs in knra-api-js-lib the same milestone tags. This should make it easy to keep track. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the SALSAH GUI display a time value? Are the value type constants correctly configured?
You mean the old GUI? I guess it can't. Which constants are those? |
I think they are hard-coded in a JS file. They had to be changed to the Knora IRIs. Since the time value hasn't been supported yet by Knora, it is possible that the value type IRI has to be adapted. Maybe @loicjaouen knows this. |
OK, I think I've got it working in SALSAH 1 in 68ab4d5. I didn't really know what I was doing, but I can create a resource with a time value, display it, and change the time value. Could you have a look? |
I haven't run it in years. @loicjaouen Could you have a look? |
@subotic I'm having trouble finding anyone who can review the changes I made in the SALSAH 1 JavaScript code for this PR. Could you help find a reviewer, or should we just merge it anyway? |
sorry, I missed the call, I look at it now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine and I tested the timestamp in the GUI, add, edit, store and search work: it behaves as it should
Thanks @loicjaouen ! |
@tobiasschweizer Is this OK to merge now? |
I will look at it in a minute! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! When you merge this PR, please also merge dasch-swiss/dsp-js-lib#59. Thanks!
@tobiasschweizer Thank you! |
This adds a new value type,
knora-base:TimeValue
, which stores anxsd:dateTime
(represented asxsd:dateTimeStamp
in API v2).TimeValue
toknora-base
andsalsah-gui
.knora-base:TimeValue
in SPARQL templates:ValuesResponderV1Spec
ValuesV1R2RSpec
ResourcesV1R2RSpec
ValuesResponderV2Spec
ValuesRouteV2E2ESpec
OntologyV2R2RSpec
OntologyResponderV2Spec
SearchV1R2RSpec
SearchRouteV2R2RSpec
Resolves #1397.
Resolves #1446.
Needs dasch-swiss/knora-ui#307.
Needs dasch-swiss/dsp-tools#12.
Needs dasch-swiss/dsp-js-lib#41.