Extension:PropChainsHelper

Property Chains Helper is an extension to Semantic MediaWiki that provides a special page for helping the specification of the correct property chains needed to address properties in queries involving related categories.

Installation
Clone 'PropChainsHelper' via Git, place this directory within the main MediaWiki 'extensions' directory. Then, in the file 'LocalSettings.php' in the main MediaWiki directory add the following line:

Configuration
To describe the database structure populate the global variables,  , and. There is also the possibility to help with the domains of categorical variables by filling the  global variable.


 * is an associative array with the level of each category, for example:


 * is an associative array with the chain numbers and their level. Suppose for instance that there are two chains 'Patients -> Positives' and 'Patients -> Samplings' with a common root and the properties are:

- Patient(Age_of_patient, Gender_of_patient)

- Positives(Contact_of_positive, Type_of_contact)

- Samplings(Date_of_sampling, Result_of_sampling)

then  will be written as:


 * is an associative array with the link properties for each chain, for example in the previous case both the 'Positives' and 'Samplings' chains are linked with the property 'Has Patient':

In the case more levels are present, the previous array would become an irregular array.


 * Finally,  is useful for helping with categorical domains, for example:

Usage
Property Chains Helper defines a special page, at "Special:PropChainsHelper".

The page "Special:PropChainsHelper" displays a form that can be filled out with the category and the properties. The properties can be considered as printouts or filters. The next step is to prepare the semantic query by clicking on the button: the printouts and the criteria prefixed with the needed property chains will appear below. Finally, running the query will prefill a semantic search form with conditions, filters and printouts and it will execute it.

Bugs and feature requests
Send any bug reports and requests to Marco Falda (marco.falda@undefinedgmail.com).

Contributing patches to the project
If you found bugs and fixed it please create a patch.

If you created a patch you can send it to Marco Falda.