Some questions about SMW
> I was looking for this because at the moment i have to introduce apart from the dublin core vocabulary (not so extensive) another ontology in ".owl" which has like 100 categories (or classes) and some hundreds of properties also....so doing it manually EACH time (i need to do it more than once) is kind of hard.
Your scenario can not be codified in rules that would be applicable and working for each potential user that would need such import feature.
SMW provides the infrastructure to actual make such models available depending on a users scenario without restriction on how to model.
In your case (as it seems you need to do it for more than on wiki) I would urge you to write a small tool where you specify your rules and then run the import once per wiki.
We do similar things with our integration tests [0, 1] where rules are codified (in terms of 'imported from' to property relation) and automatically created each time the test is run. This may or may not helpful to you in writing a tool that would suit your needs.
As I also mentioned earlier, strict typing of imported vocab. is only supported starting with [2].
[2] https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/891
Ok thanks. Is there any way then to create more than one property of category at the same time from scratch?
For example in Special:createproperty
"Knows Text
Autor Page
"
In createForm
"
{{Plant 1 |Knows= |Autor= }}
{{Plant 2 |Knows= |Autor= }}
"
So that i do not have to enter it all hand by hand each time. Perhaps this peace of code you put helps:
{
"description": "Rdf output for imported foaf annotated vocabulary (requires import before property declaration)",
"properties": [],
"subjects": [
{
"name": "Smw import foaf",
"namespace": "NS_MEDIAWIKI",
"contents": "http://xmlns.com/foaf/0.1/%7CFriend Of A Friend\n name|Type:Text\n homepage|Type:URL\n mbox|Type:Email\n mbox_sha1sum|Type:Text\n depiction|Type:URL\n phone|Type:Text\n Person|Category\n Organization|Category\n knows|Type:Page\n member|Type:Page\n"
},
{
"name": "Foaf:homepage",
"namespace": "SMW_NS_PROPERTY",
"contents": "foaf:homepage"
},
{
"name": "Foaf:mbox",
"namespace": "SMW_NS_PROPERTY",
"contents": "Text foaf:mbox"
},
{
"name": "Foaf:name",
"namespace": "SMW_NS_PROPERTY",
"contents": "Text foaf:name"
},
{
"name": "Foaf:knows",
"namespace": "SMW_NS_PROPERTY",
"contents": "Page foaf:knows"
},
], }
But i would like to do something similar for forms and templates.
(This could solve my problem, more or less).
Is there any way to indicate some category is subcategory of other one without entering in the page of him?
Something like
Category1 Category2
Category2
Having this i could create my Category hierarchy manually all in the same page, which is not an import, but would make me able to advance quite much.