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 redundant ontology metadata file #69

Conversation

paulmillar
Copy link
Contributor

Motivation:

PaNET currently contains two files with the same information. They differ only in which format that information is expressed. Tools exist that allow for automatic translation of this information. Moreover, duplicating information violates the normalisation principle and risks that inconsistencies are introduced.

Modification:

Remove the RDF/XML formatted file. This leaves the Turtle version as the definitive source of ontology metadata.

Result:

Duplicate information is removed.

Closes: #68

@agbeltran
Copy link
Member

Thanks, Paul. Indeed, the main file to keep the ontology metadata is the turtle file - and I agree that we could only keep that one as long as the process to create the release is clear. The equivalent OWL file is created (via a tool) to be imported in the PaNET.owl file (whose release will be the file after reasoning). So, we could delete the redudant file if the process is clear, and better yet, automated (#25)

@paulmillar
Copy link
Contributor Author

@agbeltran

I'm currently stuck on a problem that (I think) you could help, as described in #72.

The file source/PaNET.owl in our git repo contains this definition for PaNET01272 (after converting to Turtle):

<http://purl.org/pan-science/PaNET/PaNET01272> a owl:Class;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET01004> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET01271> ;
        rdfs:label       "nanofocus x-ray scattering" .

The build script runs the reasoner so it includes all superclasses. Therefore, the definition for the same term contains many more parent terms:

<http://purl.org/pan-science/PaNET/PaNET01272> a owl:Class;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET00001> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET00002> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET00003> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET00100> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET00106> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET00200> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET01004> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET01012> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET01184> ;
        rdfs:subClassOf  <http://purl.org/pan-science/PaNET/PaNET01271> ;
        rdfs:label       "nanofocus x-ray scattering" .

The problem is that I don't know which of these definitions is "correct".

Motivation:

PaNET currently contains two files with the same information.  They
differ only in which format that information is expressed.  Tools exist
that allow for automatic translation of this information.  Moreover,
duplicating information violates the normalisation principle and risks
that inconsistencies are introduced.

Modification:

Remove the RDF/XML formatted file.  This leaves the Turtle version as
the definitive source of ontology metadata.

Result:

Duplicate information is removed.

Closes: ExPaNDS-eu#68
@paulmillar paulmillar force-pushed the remove-duplicate-ontology-metadata-file branch from 706bc3f to 916c3b7 Compare June 17, 2024 12:45
Copy link
Collaborator

@K-Syder K-Syder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File removed as required.

@paulmillar paulmillar merged commit 53e4b1c into ExPaNDS-eu:master Jun 21, 2024
@paulmillar paulmillar deleted the remove-duplicate-ontology-metadata-file branch June 21, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source contains duplicate ontology metadata files
3 participants