OSW Ontology Import
From Battery Knowledge Base
Item:OSWc596ce27af054764ae9716748d01555e
Prerequisites
- An up-to-date OpenSemanticLab instance, see osl-mw-docker-compose
- Latest version of osw-python
- The ontology, prefered as a single .ttl file (e. g. created with Protegé)
Run the import
Customize
- You can customize the data schema / template e. g. Category:OSW57beed5e1294434ba77bb6516e461456 (preferable as a subcategory that doesn't gets overwritten by a package update) by editing the slots with "Edit slots" in the top-right toolbar.
- Add properties in the
jsonschema
slot ( => fields in the edit form )
- Change the
header_template
or footer_template
(must contain a valid mediawiki template).
- Attributes of the
jsondata
slot can be included with {{{<name>|}}}
e. g. {{{description|}}}
- Parser function can create dynamic content, e. g. with Semantic Mediawiki Ask Queries
- Technical Details are explained here OSW Schema
jsondata
type | "Category:OSW494f660e6a714a1a9681c517bbb975da" |
|
---|
uuid | "c596ce27-af05-4764-ae97-16748d01555e" |
---|
name | "OswOntologyImport" |
---|
label | text | "OSW Ontology Import" |
---|
lang | "en" |
---|
|
|
---|
statements | uuid | "134e9626-63c9-4cf1-b4a6-bedc8411a71a" |
---|
predicate | "Property:IsRelatedTo" |
---|
object | "Item:OSWab674d663a5b472f838d8e1eb43e6784" |
---|
|
|
---|