Thread:Semantic-mediawiki.org:Community portal/Some questions about SMW/reply (7)

> 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].

[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/Integration/Rdf/rdf-003-import-foaf.json

[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/ByJsonTestCaseProvider.php#L101

[2] https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/891