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

Remove duplicated imports #213

Closed
andreea-pasare opened this issue Sep 18, 2024 · 2 comments
Closed

Remove duplicated imports #213

andreea-pasare opened this issue Sep 18, 2024 · 2 comments
Assignees
Labels
type: bug Something implemented incorrectly in a release
Milestone

Comments

@andreea-pasare
Copy link
Contributor

This replicates in all *.rdf files. Please see the output from the latest rc: ePO/implementation/ePO_core/owl_ontology/ePO_core.rdf at v4.2.0-rc.1 · OP-TED/ePO

image

In the image above we have the m8g namespace that comes from various core vocabularies prefixes: cccev, clv, cpov, etc.

@rousso
Copy link
Contributor

rousso commented Oct 13, 2024

@cristianvasquez Please label this as a bug if it is one.

@cristianvasquez cristianvasquez added the type: bug Something implemented incorrectly in a release label Oct 14, 2024
@cristianvasquez cristianvasquez removed their assignment Oct 14, 2024
@gkostkowski
Copy link
Collaborator

The issue was resolved (PR #216). The change will be included in the next model2owl release.

Solution details:
RDF/XML artefacts generated by model2owl are now post-processed using rdfpipe serializer. That serializer has been already used to generate TTL files and now is also used to restructure RDF/XML files. That ensures that the returned RDF/XML files don't contain the reported redundant owl:imports statements.

Using the serializer also results in a more compact RDF/XML files as the serializer represents data in the optimal way. The following excerpts shows the difference.

Former RDF/XML representation:

<owl:DatatypeProperty rdf:about="http://data.europa.eu/a4g/ontology#hasAbnormallyLowTenders"/>
<rdf:Description rdf:about="http://data.europa.eu/a4g/ontology#hasAbnormallyLowTenders">
  <skos:prefLabel xml:lang="en">Has abnormally low tenders</skos:prefLabel>
</rdf:Description>
<rdf:Description rdf:about="http://data.europa.eu/a4g/ontology#hasAbnormallyLowTenders">
  <skos:definition xml:lang="en">Tenders received that were found irregular and non-acceptable due to an abnormally low price or cost. Additional Information The definition implies that abnormally Low Tender Lots are Inadmissible Tender Lots. WG Approval 28/07/2020 (epo:SubmissionStatisticalInformation)</skos:definition>
</rdf:Description>
<rdf:Description rdf:about="http://data.europa.eu/a4g/ontology#hasAbnormallyLowTenders">
  <rdfs:isDefinedBy rdf:resource="http://data.europa.eu/a4g/ontology#core"/>
</rdf:Description>

New RDF/XML representation:

<rdf:Description rdf:about="http://data.europa.eu/a4g/ontology#hasAbnormallyLowTenders">
  <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
  <skos:prefLabel xml:lang="en">Has abnormally low tenders</skos:prefLabel>
  <skos:definition xml:lang="en">Tenders received that were found irregular and non-acceptable due to an abnormally low price or cost. Additional Information The definition implies that abnormally Low Tender Lots are Inadmissible Tender Lots. WG Approval 28/07/2020 (epo:SubmissionStatisticalInformation)</skos:definition>
  <rdfs:isDefinedBy rdf:resource="http://data.europa.eu/a4g/ontology#core"/>
</rdf:Description>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something implemented incorrectly in a release
Projects
None yet
Development

No branches or pull requests

4 participants