Filtering out the individual's labels from context node queries.

This commit is contained in:
deepakkoni 2011-07-18 21:46:18 +00:00
parent 504037488f
commit 14e1ef9d79

View file

@ -324,8 +324,8 @@ public class ContextNodeFields implements DocumentModifier{
+ " OPTIONAL { ?c core:hrJobTitle ?HRJobTitle . } . " + " OPTIONAL { ?c core:hrJobTitle ?HRJobTitle . } . "
+ " OPTIONAL { ?c core:involvedOrganizationName ?InvolvedOrganizationName . } ." + " OPTIONAL { ?c core:involvedOrganizationName ?InvolvedOrganizationName . } ."
+ " OPTIONAL { ?c core:positionForPerson ?f . ?f rdfs:label ?PositionForPerson . } . " + " OPTIONAL { ?c core:positionForPerson ?f . ?f rdfs:label ?PositionForPerson . FILTER (?f != ?uri) . } . "
+ " OPTIONAL { ?c core:positionInOrganization ?i . ?i rdfs:label ?PositionInOrganization . } . " + " OPTIONAL { ?c core:positionInOrganization ?i . ?i rdfs:label ?PositionInOrganization . FILTER (?i != ?uri) . } . "
+ " OPTIONAL { ?c core:titleOrRole ?TitleOrRole . } . " + " OPTIONAL { ?c core:titleOrRole ?TitleOrRole . } . "
+ " }"); + " }");
@ -338,9 +338,8 @@ public class ContextNodeFields implements DocumentModifier{
+ " OPTIONAL { ?c core:advisee ?d . ?d rdfs:label ?Advisee . } . " + " OPTIONAL { ?c core:advisee ?d . ?d rdfs:label ?Advisee . } . "
+ " OPTIONAL { ?c core:degreeCandidacy ?e . ?e rdfs:label ?DegreeCandidacy . } ." + " OPTIONAL { ?c core:degreeCandidacy ?e . ?e rdfs:label ?DegreeCandidacy . } ."
+ " OPTIONAL { ?c core:linkedAuthor ?f . ?f rdfs:label ?LinkedAuthor . } . " + " OPTIONAL { ?c core:linkedAuthor ?f . ?f rdfs:label ?LinkedAuthor . FILTER (?f != ?uri) . } . "
+ " OPTIONAL { ?c core:linkedInformationResource ?h . ?h rdfs:label ?LinkedInformationResource . } . " + " OPTIONAL { ?c core:linkedInformationResource ?h . ?h rdfs:label ?LinkedInformationResource . } . "
+ " } "); + " } ");
multiValuedQueriesForAgent.add(prefix + multiValuedQueriesForAgent.add(prefix +
@ -351,7 +350,7 @@ public class ContextNodeFields implements DocumentModifier{
+ " ?c rdf:type core:AwardReceipt . " + " ?c rdf:type core:AwardReceipt . "
+ " OPTIONAL { ?c core:awardConferredBy ?d . ?d rdfs:label ?AwardConferredBy } . " + " OPTIONAL { ?c core:awardConferredBy ?d . ?d rdfs:label ?AwardConferredBy } . "
+ " OPTIONAL { ?c core:awardOrHonorFor ?e . ?e rdfs:label ?AwardOrHonorFor } ." + " OPTIONAL { ?c core:awardOrHonorFor ?e . ?e rdfs:label ?AwardOrHonorFor . FILTER (?e != ?uri) .} ."
+ " OPTIONAL { ?c core:description ?Description . } . " + " OPTIONAL { ?c core:description ?Description . } . "
+ " }"); + " }");
@ -360,6 +359,7 @@ public class ContextNodeFields implements DocumentModifier{
+ "?uri rdf:type foaf:Agent ; ?b ?c . " + "?uri rdf:type foaf:Agent ; ?b ?c . "
+ " ?c rdf:type core:Role ; core:roleIn ?Organization ." + " ?c rdf:type core:Role ; core:roleIn ?Organization ."
+ " ?Organization rdfs:label ?OrganizationLabel . " + " ?Organization rdfs:label ?OrganizationLabel . "
+ " FILTER (?Organization != ?uri) ."
+ " }"); + " }");
multiValuedQueriesForAgent.add(prefix + multiValuedQueriesForAgent.add(prefix +
@ -373,8 +373,7 @@ public class ContextNodeFields implements DocumentModifier{
+ "OPTIONAL { ?c core:degreeEarned ?d . ?d rdfs:label ?AcademicDegreeLabel ; core:abbreviation ?AcademicDegreeAbbreviation . } . " + "OPTIONAL { ?c core:degreeEarned ?d . ?d rdfs:label ?AcademicDegreeLabel ; core:abbreviation ?AcademicDegreeAbbreviation . } . "
+ "OPTIONAL { ?c core:majorField ?MajorField .} ." + "OPTIONAL { ?c core:majorField ?MajorField .} ."
+ " OPTIONAL { ?c core:departmentOrSchool ?DepartmentOrSchool . }" + " OPTIONAL { ?c core:departmentOrSchool ?DepartmentOrSchool . }"
+ " OPTIONAL { ?c core:trainingAtOrganization ?e . ?e rdfs:label ?TrainingAtOrganizationLabel . } . " + " OPTIONAL { ?c core:trainingAtOrganization ?e . ?e rdfs:label ?TrainingAtOrganizationLabel . FILTER (?e != ?uri) . } . "
+"}"); +"}");
} }
@ -390,11 +389,10 @@ public class ContextNodeFields implements DocumentModifier{
+ " ?uri rdf:type core:InformationResource . " + " ?uri rdf:type core:InformationResource . "
+ "OPTIONAL { ?uri core:informationResourceInAuthorship ?a . ?a core:linkedAuthor ?b ; core:linkedInformationResource ?d ." + + "OPTIONAL { ?uri core:informationResourceInAuthorship ?a . ?a core:linkedAuthor ?b ; core:linkedInformationResource ?d ." +
"?b rdfs:label ?LinkedAuthor . ?d rdfs:label ?LinkedInformationResource } . " "?b rdfs:label ?LinkedAuthor . ?d rdfs:label ?LinkedInformationResource . FILTER (?d != ?uri) .} . "
+ "OPTIONAL { ?uri bibo:editor ?e . ?e rdfs:label ?Editor . } ." + "OPTIONAL { ?uri bibo:editor ?e . ?e rdfs:label ?Editor . } ."
+ " OPTIONAL { ?uri core:hasSubjectArea ?f . ?f rdfs:label ?SubjectArea . } " + " OPTIONAL { ?uri core:hasSubjectArea ?f . ?f rdfs:label ?SubjectArea . } "
+ " OPTIONAL { ?uri core:features ?i . ?i rdfs:label ?Features . } . " + " OPTIONAL { ?uri core:features ?i . ?i rdfs:label ?Features . } . "
+"}" ; +"}" ;
} }