|
|
@ -724,18 +724,15 @@ function islandora_get_content_models($ignore_system_namespace = TRUE) { |
|
|
|
FROM <#ri> |
|
|
|
FROM <#ri> |
|
|
|
WHERE { |
|
|
|
WHERE { |
|
|
|
{?object fm:hasModel <info:fedora/fedora-system:ContentModel-3.0>; |
|
|
|
{?object fm:hasModel <info:fedora/fedora-system:ContentModel-3.0>; |
|
|
|
fm:state <info:fedora/fedora-system:def/model#Active> |
|
|
|
fm:state fm:Active |
|
|
|
OPTIONAL{ |
|
|
|
|
|
|
|
?object fm:label ?label |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
UNION{ |
|
|
|
|
|
|
|
?object fr:isMemberOfCollection <info:fedora/islandora:ContentModelsCollection>; |
|
|
|
|
|
|
|
fm:state fm:Active |
|
|
|
} |
|
|
|
} |
|
|
|
UNION |
|
|
|
|
|
|
|
{?object fr:isMemberOfCollection <info:fedora/islandora:ContentModelsCollection>; |
|
|
|
|
|
|
|
fm:state <info:fedora/fedora-system:def/model#Active> |
|
|
|
|
|
|
|
OPTIONAL{ |
|
|
|
OPTIONAL{ |
|
|
|
?object fm:label ?label |
|
|
|
?object fm:label ?label |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}"; |
|
|
|
}"; |
|
|
|
$content_models = array(); |
|
|
|
$content_models = array(); |
|
|
|
$results = $tuque->repository->ri->sparqlQuery($query, 'unlimited'); |
|
|
|
$results = $tuque->repository->ri->sparqlQuery($query, 'unlimited'); |
|
|
|