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

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 Has type::Text

Autor Has type::Page

"

In createForm

"

"

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/|Friend 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": "Imported from::foaf:homepage" },		{			"name": "Foaf:mbox", "namespace": "SMW_NS_PROPERTY", "contents": "Has type::Text Imported from::foaf:mbox" },		{			"name": "Foaf:name", "namespace": "SMW_NS_PROPERTY", "contents": "Has type::Text Imported from::foaf:name" },		{			"name": "Foaf:knows", "namespace": "SMW_NS_PROPERTY", "contents": "Has type::Page Imported from::foaf:knows" },	], }

But i would like to do something similar for forms and templates.