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

Hardcoded Metadata Extraction Overwrites Configuration Schemes in submission_extract_metadata.rb #177

Open
muhammedBkf opened this issue Jan 10, 2025 · 0 comments

Comments

@muhammedBkf
Copy link

In the extract_metadata method, the code is designed to extract version information and ontology IRI from the submission file. This extraction process is overriding the configuration schemes defined in config/schemes/ontology_submission.yml, so even if we set extractedMetadata to false it gets extracted anyways.

Code in Question:

def extract_metadata(logger, user_params, heavy_extraction: true)
version_info = extract_version
ontology_iri = extract_ontology_iri
@submission.version = version_info if version_info
@submission.uri = ontology_iri if ontology_iri
@submission.save

Configuration Scheme:

#Version IRI
versionIRI:
display: "general"
label: "Version IRI"
helpText: "The property that identifies the version IRI of an ontology."
example: 'https://w3id.org/myontology/3.2.0'
description: [
"OWL: The property that identifies the version IRI of an ontology." ]
extractedMetadata: true
#Version information
version:
display: 'general'
label: "Version information"
helpText: "The version information of the ontology."
example: "v.3.2.0"
description: [
"OMV: The version information of the ontology.",
"MOD: The current version of the ontology. Possibly using Semantic versioning.",
"OWL: The annotation property that provides version information for an ontology or another OWL construct. ",
"PAV: The version number of a resource.",
"DOAP: A project release",
"SCHEMA: The version of the CreativeWork embodied by a specified resource."]
extractedMetadata: true
metadataMappings: [ "omv:version", "mod:version", "owl:versionInfo", "pav:version", "doap:release", "schema:version", "oboInOwl:data-version", "oboInOwl:version" ]

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

No branches or pull requests

1 participant