This commit is contained in:
Tim Worrall 2014-06-09 17:11:34 -04:00
parent 15169ca894
commit c2d24cb74d
3 changed files with 12 additions and 9 deletions

View file

@ -68,8 +68,8 @@ public class UtilitiesRequestHandler implements VisualizationRequestHandler {
String filterRule = "?predicate = j.2:mainImage "
// + "|| ?predicate = core:preferredTitle "
+ "|| ?predicate = rdfs:label";
+ " || ?predicate = rdfs:label "
+ " || ?predicate = <http://www.w3.org/2006/vcard/ns#title>";
QueryRunner<GenericQueryMap> profileQueryHandler =
new AllPropertiesQueryRunner(individualURI,

View file

@ -99,8 +99,11 @@ public class AllPropertiesQueryRunner implements QueryRunner<GenericQueryMap> {
+ "SELECT "
+ " (str(?predicate) as ?" + QueryFieldLabels.PREDICATE + ") "
+ " (str(?object) as ?" + QueryFieldLabels.OBJECT + ") "
+ "WHERE { "
+ "<" + queryURI + "> ?predicate ?object. "
+ "WHERE { {"
+ "<" + queryURI + "> ?predicate ?object. }"
+ "UNION {<" + queryURI + "> <http://purl.obolibrary.org/obo/ARG_2000028> ?vCard . "
+ "?vCard <http://www.w3.org/2006/vcard/ns#hasTitle> ?vTitle . "
+ "?vTitle ?predicate ?object . }"
+ filterClause
+ "}";