https://github.com/citiususc/owl2yarrrml

Basic script that extracts information from the ontology to generate a YARRRML template

https://github.com/citiususc/owl2yarrrml

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic script that extracts information from the ontology to generate a YARRRML template

Basic Info
Statistics
  • Stars: 9
  • Watchers: 7
  • Forks: 3
  • Open Issues: 1
  • Releases: 3
Created almost 6 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Transforming your ontology into YARRRML mappings

This script generates a YARRRML template from the input ontology. The transformations made are:

| Ontology | Mapping | |-----------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| | Class | TriplesMap + Simple PredicateObjectMap (rdf:type, class) | | Data Property | Simple PredicateObjectMap in the TriplesMap corresponding to the class defined in the domain of the property | | Object Property | Join PredicateObjectMap in the TriplesMap corresponding to the class defined in the domain of the property and where the parentTriplesMap is the TriplesMap corresponding to the class defined in the range of the property |

How to execute it

Execution from CLI

The input ontology can be serialized in NTRIPLES, RDF/XML or Turtle bash python3 -m pip install owl2yarrrml python3 -m owl2yarrrml -i paht/ontology.xml -o ouput_path/mapping.yml

Execution as a library

The ontology has to be provided in RDF/XML. ```python import owl2yarrrml import owlready2 ontology=owlready2.getontology("file://path/to/my/ontology.xml").load() yarrrmlcontent = owl2yarrrml.translate(ontology)

```

Authors

CiTIUS - Universidade de Santiago de Compostela (2023-now) and Ontology Engineering Group - Universidad Politécnica de Madrid (2020-2023): - David Chaves-Fraga

Owner

  • Name: CiTIUS
  • Login: citiususc
  • Kind: organization
  • Email: citius@usc.es
  • Location: Santiago de Compostela

Centro Singular de Investigación en Tecnoloxías Intelixenteas da Universidade de Santiago de Compostela

GitHub Events

Total
  • Release event: 1
  • Watch event: 3
  • Issue comment event: 1
  • Member event: 1
  • Push event: 3
  • Fork event: 1
  • Create event: 1
Last Year
  • Release event: 1
  • Watch event: 3
  • Issue comment event: 1
  • Member event: 1
  • Push event: 3
  • Fork event: 1
  • Create event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 22
  • Total Committers: 2
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.091
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
David Chaves d****a@g****m 20
robert-mieth r****h@t****e 2
Committer Domains (Top 20 + Academic)
tum.de: 1

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 4
  • Total pull requests: 2
  • Average time to close issues: about 2 years
  • Average time to close pull requests: about 9 hours
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dachafra (3)
  • daniel-dona (1)
Pull Request Authors
  • robert-mieth (2)
Top Labels
Issue Labels
enhancement (3) bug (1)
Pull Request Labels

Dependencies

.github/workflows/pypi-publish.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
pyproject.toml pypi
  • pytest ^7.0.0 develop
  • PyYAML ^6.0
  • owlready2 ^0.39.0
  • python >3.8.1,<4.0.0
  • rdflib ^7.1.4