Difference between revisions of "Names of semantic properties"

From AIRWiki
Jump to: navigation, search
(New page: When writing queries, beware! The name of a property can be DIFFERENT from the name used in the semantic part of the wiki pages describing the objects of your query. For instance, any proj...)
 
(No difference)

Latest revision as of 12:01, 9 February 2010

When writing queries, beware! The name of a property can be DIFFERENT from the name used in the semantic part of the wiki pages describing the objects of your query. For instance, any project page includes something like

{{Project
| [...]
| restopic=SomeTopic
| [...]
}}

But if you are writing a query to select the projects with topic SomeTopic you should NOT use

[[restopic::SomeTopic]]

Instead, you have to use the name of the property corresponding to the "restopic" field in the project page. This name is "prjResTopic": therefore your query should use

[[prjResTopic::SomeTopic]]

How can you find out the right name for the properties associated to (the content of) a page? When a page includes semantic information, clicking the "Browse properties" link in the toolbox on the left gives you a list of all the properties defined for that page.

Note 1: the correspondencies between properties and field names in the semantic code of a page are set by the relevant semantic form. For instance, for a project they can be seen (and altered, if you know what you're doing...) by editing the Form:Project page.

Note 2: in some cases the name of a property is preceded by a prefix in the form "PREFIX:" this means that the property has been imported from an external ontology, or defined in accordance with it. Examples of such prefixes are "A:" (referring to Annotea) and "Foaf:" (referring to the Friend-Of-A-Friend project). In any case, AIRWiki properties having a prefix are used exactly in the same way of the other properties.