-
Notifications
You must be signed in to change notification settings - Fork 7
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
Change RDF type xsd:edtf #13
Comments
What exactly is the expected output? Right now we have
Should that become
? |
@andrawaag Please check this. Additionally it is importantt that the value shows up on the SPARQL endpoint. Currently that does not happen. I don't know if that is because of the unknown type (xsd:edtf) or some other reason. Can we try xsd:string as well to check whether the full edtf-date shows up on the sparql endpoint? |
I would not include the HTML in https://id.loc.gov/datatypes/edtf.html. This might disrupt the content negotiation that is happening in Wikibase. I looked for a proper EDTF datatype IRI, but information on this is sparse. I ended up stumbling upon a ruby library that generated EDTF RDF and in the source code, I found the following IRI. http://id.loc.gov/datatypes/edtf/EDTF The prefix version could read as follows edtf:EDTF
|
I ran into this today while updating my schema to account for an EDTF period, using it with the simple SHEX validator (and the "query for all instances of ConFuzzled" in the schema comments).
The schema in question has period defined as The item that failed has an EDTF period with start and end qualifiers that are EDTF points of time. |
@GreenReaper thanks for pointing our attention to this. Do you have a recommendation on how to solve this open issue? Using https://www.iso.org/standard/70908.html as the domain would also not work. |
Well, as @andrawaag suggests above, I think it should resolve to I am not sure if there will be any problems within Wikibase with existing values of this type or if just changing it where the RDF is generated will work transparently. It seems likely that anything that relies on the RDF output (e.g. WDQS) and stores it locally will require reindexing of entries using EDTF in order to pick up the change. |
Yeah, the issue we had with doing that is id.loc.gov is not the standard holder, but the only open explainer of the standard. Feel free to create a pull request though, if you can see where to change this. |
Well, I can see the first place to change is WikibaseEdtf/src/Services/RdfBuilder.php Line 32 in 361831d
I don't know what to call to add the prefix but I'd be surprised if there was not a method. (Surely some other extension adds types not defined under one of the existing prefixes?) Regarding the concern about it not being the standard holder, that is understandable; however if they have not arranged a URI, I think it is better to use something that exists than declare that it is part of XSD when it is not. |
I agree that it is better to not have it part of XSD, will you make the pull request, than we can discuss the proposal further there. |
Quoting @andrawaag:
The text was updated successfully, but these errors were encountered: