You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OntoLearner Metadata will be created automatically at Github under `metadata/ <https://github.com/sciknoworg/OntoLearner/tree/main/metadata>`_ directory, and it is available for download after ``ontolearner > 1.3.1`` also at `Releases <https://github.com/sciknoworg/OntoLearner/releases>`_ per release.
7
+
8
+
.. hint::
9
+
10
+
The metadata release is fully automated through CI/CD, ensuring it is generated automatically with each PyPI release.
11
+
12
+
.. sidebar:: OntoLearner Metadata Exporter Features
13
+
14
+
- Generates `Dublin Core metadata <https://www.dublincore.org/specifications/dublin-core/dces/>`_ for each ontology in the library
15
+
- Creates a top-level ``Collection`` resource for OntoLearner
16
+
- Supports RDF/XML serialization in a clean, human-readable format
17
+
- Uses a custom ``ontologizer`` namespace for ontology-specific resources
18
+
19
+
20
+
The ``OntoLearnerMetadataExporter`` is a utility class for generating **Dublin Core (DCMI) metadata** for all ontologies benchmarked in the OntoLearner library. It collects essential metadata, including ontology title and description, creator/authors, license information, format, version, and last updated date, domain and category, and download URL. Additionally, it generates a **top-level collection resource** that describes the entire OntoLearner benchmarking suite. The output is a **pretty-printed RDF/XML file** compatible with standard semantic web tools and parsers.
<dc:description>This Dublin Core metadata collection describes ontologies benchmarked in OntoLearner. It includes information such as title, creator, format, license, and version.</dc:description>
The following table summarizes the key **Dublin Core metadata properties** captured for each ontology in OntoLearner. It provides a quick overview of the ontology’s identifier, title, description, authorship, format, license, domain, and version information, helping users understand and reference the ontologies consistently.
<dc:description>This Dublin Core metadata collection describes ontologies benchmarked in OntoLearner. It includes information such as title, creator, format, license, and version.</dc:description>
108
+
<dc:creator>OntoLearner Team</dc:creator>
109
+
<dcterms:license>MIT License</dcterms:license>
110
+
<dcterms:hasVersion>1.4.0</dcterms:hasVersion>
111
+
</ontologizer:Collection>
112
+
113
+
Exporter
114
+
--------------------
115
+
116
+
``OntoLearnerMetadataExporter`` is included in the OntoLearner library, which you can store the ontology locally.
117
+
118
+
.. code-block:: python
119
+
120
+
from ontolearner import OntoLearnerMetadataExporter
121
+
122
+
# Initialize exporter
123
+
exporter = OntoLearnerMetadataExporter()
124
+
125
+
# Export metadata to RDF/XML
126
+
exporter.export("ontolearner-metadata.rdf")
127
+
128
+
The above code outputs:
129
+
130
+
- **File:** ``ontolearner-metadata.rdf``
131
+
- **Format:** Pretty-printed RDF/XML
132
+
- **Content:** metadata for each ontology
133
+
134
+
The top-level collection describes the entire OntoLearner benchmark, while each ontology entry includes detailed metadata using Dublin Core and DCTERMS properties.
135
+
136
+
.. hint::
137
+
138
+
**Namespace Bindings:** The exporter uses the following namespaces in the RDF output:
0 commit comments