From 5a4a2d22f5bc8a24023ee4fd5043abe4d9c923ca Mon Sep 17 00:00:00 2001 From: deepakkoni Date: Fri, 1 Jul 2011 18:59:45 +0000 Subject: [PATCH] Removing researchAreaOf from the informationresource queries. --- .../mannlib/vitro/webapp/search/solr/ContextNodeFields.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/ContextNodeFields.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/ContextNodeFields.java index fd254c627..4cc689afa 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/ContextNodeFields.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/ContextNodeFields.java @@ -384,7 +384,7 @@ public class ContextNodeFields implements DocumentModifier{ multiValuedQueryForInformationResource = prefix + "SELECT (str(?LinkedAuthor) as ?linkedAuthor) (str(?LinkedInformationResource) as ?linkedInformationResource) " - + "(str(?Editor) as ?editor) (str(?SubjectArea) as ?subjectArea) (str(?ResearchAreaOf) as ?researchAreaOf) " + + + "(str(?Editor) as ?editor) (str(?SubjectArea) as ?subjectArea) " + "(str(?Features) as ?features) WHERE {" + " ?uri rdf:type core:InformationResource . " @@ -392,7 +392,7 @@ public class ContextNodeFields implements DocumentModifier{ + "OPTIONAL { ?uri core:informationResourceInAuthorship ?a . ?a core:linkedAuthor ?b ; core:linkedInformationResource ?d ." + "?b rdfs:label ?LinkedAuthor . ?d rdfs:label ?LinkedInformationResource } . " + "OPTIONAL { ?uri bibo:editor ?e . ?e rdfs:label ?Editor . } ." - + " OPTIONAL { ?uri core:hasSubjectArea ?f . ?f rdfs:label ?SubjectArea ; core:researchAreaOf ?h . ?h rdfs:label ?ResearchAreaOf . } " + + " OPTIONAL { ?uri core:hasSubjectArea ?f . ?f rdfs:label ?SubjectArea . } " + " OPTIONAL { ?uri core:features ?i . ?i rdfs:label ?Features . } . " +"}" ;