Difference between revisions of "Help:SemanticMW import external vocabulary"
From Biowikifarm Metawiki
Line 7: | Line 7: | ||
An example of this functionality is the use of the FOAF vocabulary in the TestWiki. Although the associated terms work like any other annotation in the | An example of this functionality is the use of the FOAF vocabulary in the TestWiki. Although the associated terms work like any other annotation in the | ||
wiki, the RDF that is exported will directly use the elements of the FOAF specification, thus allowing users to edit FOAF files through the wiki. | wiki, the RDF that is exported will directly use the elements of the FOAF specification, thus allowing users to edit FOAF files through the wiki. | ||
+ | |||
+ | The names of the selected pages, without namespace prefix, are either shown automatically in query results, or optionally by specifying mainlabel. Names are [[has type::String|strings]]. | ||
+ | |||
+ | |||
+ | Applications of attribute '''FoafName''' include: | ||
+ | |||
+ | *the name deviates from the pagename without namespace prefix, e.g. | ||
+ | |||
+ | **it is the full name while the pagename is a short form | ||
+ | |||
+ | **it includes the namespace prefix (we can also use the separate [[Attribute:Ns]]) | ||
+ | |||
+ | **it starts with a lowercase letter | ||
+ | |||
+ | *selection with an inequality | ||
+ | |||
+ | |||
+ | Formally, ''FoafName'' is represented by the [[FOAF]] property [[imported from::foaf:name]]. | ||
[[Category:Help]] | [[Category:Help]] | ||
[[Category:Extensions]] | [[Category:Extensions]] |
Revision as of 13:21, 21 April 2010
Help sections |
---|
Contents · Semantic MediaWiki · Semantic Forms |
Add Ontology · Semantic links and import/export features · Import external vocabulary |
Other SemanticMW extensions · Other extensions |
In Semantic MediaWiki it is possible to import and reuse controlled vocabulary that belongs to existing Semantic Web documents or standards by associating the vocabulary's elements with wiki terms.
Import vocabulary
An example of this functionality is the use of the FOAF vocabulary in the TestWiki. Although the associated terms work like any other annotation in the wiki, the RDF that is exported will directly use the elements of the FOAF specification, thus allowing users to edit FOAF files through the wiki.
The names of the selected pages, without namespace prefix, are either shown automatically in query results, or optionally by specifying mainlabel. Names are strings.
Applications of attribute FoafName include:
- the name deviates from the pagename without namespace prefix, e.g.
- it is the full name while the pagename is a short form
- it includes the namespace prefix (we can also use the separate Attribute:Ns)
- it starts with a lowercase letter
- selection with an inequality
The import namespace "foaf" is unknown. Please ensure that OWL import details are available via MediaWiki:Smw import foaf
.