Difference between revisions of "Help:SemanticMW import external vocabulary"

From Biowikifarm Metawiki
Jump to: navigation, search
(Import vocabulary)
Line 8: Line 8:
 
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 <nowiki>[[has type::String|strings]]</nowiki>.
+
The names of the selected pages, without namespace prefix, are either shown automatically in query results, or optionally by specifying mainlabel.
 +
Names are <nowiki>[[has type::String|strings]]</nowiki>.
  
  
Line 17: Line 18:
 
**it is the full name while the pagename is a short form
 
**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 includes the namespace prefix (we can also use the separate <nowiki>[[Attribute:Ns]]</nowiki>)
  
 
**it starts with a lowercase letter
 
**it starts with a lowercase letter

Revision as of 13:36, 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 [[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]].