<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battery.knowledge-graph.eu/w/index.php?action=history&amp;feed=atom&amp;title=Item%3AOSWc596ce27af054764ae9716748d01555e</id>
	<title>Item:OSWc596ce27af054764ae9716748d01555e - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battery.knowledge-graph.eu/w/index.php?action=history&amp;feed=atom&amp;title=Item%3AOSWc596ce27af054764ae9716748d01555e"/>
	<link rel="alternate" type="text/html" href="https://battery.knowledge-graph.eu/w/index.php?title=Item:OSWc596ce27af054764ae9716748d01555e&amp;action=history"/>
	<updated>2026-05-11T23:29:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://battery.knowledge-graph.eu/w/index.php?title=Item:OSWc596ce27af054764ae9716748d01555e&amp;diff=27&amp;oldid=prev</id>
		<title>Maintenance script: Install package: OSW Docs - Core</title>
		<link rel="alternate" type="text/html" href="https://battery.knowledge-graph.eu/w/index.php?title=Item:OSWc596ce27af054764ae9716748d01555e&amp;diff=27&amp;oldid=prev"/>
		<updated>2023-12-15T05:13:00Z</updated>

		<summary type="html">&lt;p&gt;Install package: OSW Docs - Core&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* An up-to-date OpenSemanticLab instance, see [https://github.com/OpenSemanticLab/osl-mw-docker-compose osl-mw-docker-compose]&lt;br /&gt;
** make sure to install the [https://github.com/OpenSemanticWorld-Packages/world.opensemantic.ontology world.opensemantic.ontology] package&lt;br /&gt;
* Latest version of [https://pypi.org/project/osw/ osw-python]&lt;br /&gt;
* The ontology, prefered as a single .ttl file (e. g. created with Protegé)&lt;br /&gt;
&lt;br /&gt;
== Run the import ==&lt;br /&gt;
&lt;br /&gt;
* Adapt and run the [https://github.com/OpenSemanticLab/osw-python/blob/63e26084eca10f66cd479389e912db45d11c16dc/examples/ontology_import.py#L49 import script]&lt;br /&gt;
&lt;br /&gt;
== Customize ==&lt;br /&gt;
&lt;br /&gt;
* You can customize the data schema / template e. g. [[:Category:OSW57beed5e1294434ba77bb6516e461456]] (preferable as a subcategory that doesn&amp;#039;t gets overwritten by a package update) by editing the slots with &amp;quot;Edit slots&amp;quot; in the top-right toolbar.&lt;br /&gt;
** Add properties in the &amp;lt;code&amp;gt;jsonschema&amp;lt;/code&amp;gt; slot ( =&amp;gt; fields in the edit form )&lt;br /&gt;
** Change the &amp;lt;code&amp;gt;header_template&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;footer_template&amp;lt;/code&amp;gt; (must contain a valid [[mediawikiwiki:Help:Templates|mediawiki template]]). &lt;br /&gt;
*** Attributes of the &amp;lt;code&amp;gt;jsondata&amp;lt;/code&amp;gt; slot can be included with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{&amp;lt;name&amp;gt;|}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; e. g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{description|}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*** Parser function can create dynamic content, e. g. with [https://www.semantic-mediawiki.org/wiki/Help:Inline_queries Semantic Mediawiki Ask Queries] &lt;br /&gt;
*Technical Details are explained here [[Item:OSWab674d663a5b472f838d8e1eb43e6784]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>