datagov-cz / ontoGrapher

Tento repozitář je udržován v rámci projektu OPZ č. CZ.03.4.74/0.0/0.0/15_025/0013983.
Mozilla Public License 2.0
2 stars 2 forks source link

SKOS export of the model #33

Closed psiotwo closed 4 years ago

psiotwo commented 4 years ago

Allow exporting model to SKOS format (serialized in RDF/Turtle) compliant with

https://opendata.gov.cz/_media/dokumenty:s%C3%A9mantick%C3%BD-slovn%C3%ADk-pojm%C5%AF:c1v2d1_n%C3%A1vrh_koncepce_s%C3%A9mantick%C3%A9ho_slovn%C3%ADku_pojm%C5%AF.pdf

bindeali commented 4 years ago

Will the rdf:type be anything other than z-sgov-pojem:model (as well as owl:Ontology)? Also, what IRI should the project have? I have left it up to the user for now, but I imagine such information will be generated based on the project context in the future.

psiotwo commented 4 years ago

rdf:type is a generic typing link. So in glossary you can find different statements with the predicate of rdf:type. Some examples follow (the word 'a' can be used as an equivalent to 'rdf:type' in Turtle) :

:glosář a z-sgov-pojem:glosář, skos:ConceptScheme, owl:Ontology . :model a z-sgov-pojem:model, owl:Ontology . :term1 a skos:Concept . :term2 a skos:Concept .

bindeali commented 4 years ago

My question was perhaps worded a bit unclearly, I apologise. I understand what rdf:type is and what it means. I am going off section 4.4.1 (page 44) in the .pdf you sent.

My question was if z-sgov-pojem:model should always be among the exported model's rdf:types or if there will be a scenario in which we would want to export the model with a different type than this specific one. In other words, should the types be (besides the knowledge structure) immutable or not. For example, I understand that we want to export

:model1 a z-sgov-pojem:model, z-sgov-pojem:základní-struktura, owl:Ontology ; ... labels, imports ...

But would we ever want to export something like :model2 a some-different-sgov:model, owl:Ontology ; ... labels, imports ...

also? The reason I am asking is more because of planning for future changes, the exports are currently implemented according to the section of the document mentioned above, with the exception that the z-sgov-pojem:model type can be changed to something else.

psiotwo commented 4 years ago

Ah I see ...Currently you can stick to the IRIs in the doc, there is no plan to support other schemata.

bindeali commented 4 years ago

Current bugs:

bindeali commented 4 years ago

Progress update: This seems to be fixed as of 7060e7b, but I will do further testing tomorrow to make sure I haven't missed anything.

psiotwo commented 4 years ago

In this picture, https://slovník.gov.cz/základní/Untitled-project/pojem/Typ-objektu should be https://slovník.gov.cz/základní/Untitled-project/pojem/aaaa

image

bindeali commented 4 years ago

As of 9adaeef725e129ee1376a94a4c2e162efe50a32f, I get image given image

psiotwo commented 4 years ago

checked.