Skip to content
alangrafu edited this page Oct 4, 2012 · 2 revisions

Type priority defines a way to select which model and view to use when multiple types are implemented. For example, say

:alvaro a foaf:Person, ex:Student

LODSPeaKr needs to know whether to use queries as a person or as a student. To do that, it is possible to include into settings.inc.php

$conf['type']['priority']['foaf:Person'] = 2;
$conf['type']['priority']['ex:Student'] = 3;

In this way, LODSPeaKr will select ex:Student over foaf:Person when presented this situation. It is important to note that when no priority is found it is considered equals to 0. Also, for completeness, rdfs:Resource has priority -1

Clone this wiki locally