-
Notifications
You must be signed in to change notification settings - Fork 2
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
Extend the json-ld context #232
Comments
Two questions: |
Following terms I could not find in ontologies and are therefore missing in the context ld: These two dont need any further description
|
Regarding the question aiming at duplicated key. There is a concept we can use in JSON-LD called aliases. The Processor for JSON-LD should be able to still map the properties from the context and metadata even if you use an alias name in the context part: {
"@context": {
"nestedFields": {
"@id": "@nest",
"@type": "@id"
},
"schemaFields": {
"@id": "csvw:column",
"@type": "csvw:Column"
}
}
}
I found some more properties for the spatial fields (lat, long ...) "latitude": {
"@id": "geo:lat",
"@type": "xsd:decimal"
},
"longitude": {
"@id": "geo:long",
"@type": "xsd:decimal"
},
"crs": {
"@id": "geo:crs",
"@type": "xsd:string"
} Spatial resolution is more tricky. There must be a vocabulary for it. So far i only found this one: For "adress" we could use the https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#Location but there might also be a "adress" termin in the geo vocabulary i mentioned above. There is also a topic "Topic of interest to a person" in the FOAF vocabulary Another option is https://www.w3.org/TR/vocab-dcat-3/#Property:record_primary_topic but this one aims more on topics for catalogs of various datasets. We would need topics for datasets. |
Another solution would be https://www.w3.org/TR/json-ld11/#scoped-contexts but they seem to be more effort. I think the aliases should work for now. |
For "fields" your solution seems to work. How should we do it for "path"? |
I think it would be okay to have a "path" and a "sourcePath" or am i missing something ? :) |
I will add some code to your branch that will validate the context and check if it works with the oemetadata properties. |
I have also found a vocabulary for tables (there are also primary keys): By the way, I have found that it is much more successful to search for “xxxx vocabulary” instead of “xxx ontology” when searching for terms to add to the context. |
Well, writing the tests showed that our current approach of resolving the nested structures ("@nest") is not entirely correct. We need to describe the context more detailed. I found out about the possibility to specify collections properties like the ressources: [{}] property. Here we cant just use nest as it is an array of objects. In this case we would use: "resources": {
"@container": "@set",
"@id": "ex:resource"
},
There are things missing, but i was able to make the json-ld processor validate the current context. This is how it looks currents (as i said not complete yet. Note: I added the ex namespace for example values. I remove all "xx" placeholder values before validation. |
@vismayajochem i added something for everything now. It would be good to check again, also sometimes i use "ex": "http://example.org/" if i didn't find anything better (this is a better placeholder then "xx" :) ) Don't forget to pull the changes first. |
here is a full example how the RDF version looks like. |
A few things a noticed while reviewing the context.json:
|
Thanks for the review! That sounds great. I will implement it that way. I'm not sure about the resolution in meters yet. As far as I know, most of the time it will be meters anyway, so I agree with your suggestion. |
I couldn't find a working URL for the sdo ontology. Does someone know this ontology and could provide the URL? |
sc:isNullable in https://schema.org/ does not exist. So we need an alternativ for "nullable" |
|
Description of the issue
The oemetadata should be available as RDF data and as valid JSON-LD. A good first step is to complete the context definition available in the context.json file for each release. Once it is complete, we can use existing tools to convert the oemetadata.json format to the RDF format.
Ideas of solution
Complete the context.json file for v20 of the oemetadata json.
Add a script to convert to RDF.
Workflow checklist
The text was updated successfully, but these errors were encountered: