This site is a playground for testing Semantic MediaWiki. All content entered or uploaded here may be deleted at any time, and nothing here should be assumed to be true.
Some content was copied from semanticweb.org – please visit this site for more reliable information and author attribution.

Property:True title

From SMW-Sandbox

Jump to:navigation, search

The true title Property is meant for articles about things heaving a title which cannot be represented with the current Wikimedia system. It's a proposal of User:MovGP0 and not implemented yet.



The current approach is to have a Template witch solves the Problem for the users reading the article.

{{Wrongtitle|title=article}}
{{Wrongtitlecat|title=category}}

But this is not a perfect approach. Wikipedia shows in the Headline still the Title as stored in the Database. Instead we can use the "true title" Property to let the Wiki gather the needed information automatically and making it possible to handle the information in the codelines presenting the header or doing searching:

[[true title:=…]]

Note: there is also the need for a escape-sequence to represent the chars ']', ':', '"' and others.

Example:

[[true title::"The Approstroph (\")"]]

In this Case '\"' is a C++/Java/C# like escape Sequence and is transforming to '"'.

For more Examples see also Property:context of

[edit] Implementation

The current implementation of SemaWiki has a Table looking like the following:

subject relation object
Mars (God) is a God
Mars (God) true title Mars
Mars (Planet) is a Planet
Mars (Planet) true title Mars

First we make a query to get a Name-Mapping Table:

SELECT subject AS Title, object AS TrueTitle
FROM wiki_semantic_relations
WHERE (relation = 'true title' OR relation = 'has true title')
AND TrueTitle LIKE @SearchString

This results in the following Table for the search of 'Mars':

Title TrueTitle
Mars (God) Mars
Mars (Planet) Mars

Therefore we can see, that there is more than one meaning for the word 'Mars'. Also we get immeadetly the Name of the corresponding Articles for use in further Queries.

Note: the described Implementatin is hardcoded instead of using an semantic reasoner. But therefore, this approach will compute more effective and faster.

[edit] See also




Pages using the property "True title"

Showing 1 page using this property.

R

Rdf:Property +"rdf:Property"  +
Navigation
Toolbox