custom form changes for NIHVIVO-2594 and NIHVIVO-3761
This commit is contained in:
parent
ccb2ff3be5
commit
c126688a49
7 changed files with 188 additions and 113 deletions
|
@ -60,7 +60,14 @@ public class AddPresenterRoleToPersonGenerator extends VivoBaseGenerator impleme
|
||||||
|
|
||||||
conf.setN3Required( Arrays.asList( n3ForNewRole,
|
conf.setN3Required( Arrays.asList( n3ForNewRole,
|
||||||
roleLabelAssertion) );
|
roleLabelAssertion) );
|
||||||
conf.setN3Optional( Arrays.asList( n3ForNewPresentation, presTypeAssertion, n3ForExistingPresentation, n3ForNewConference, n3ForExistingConference, n3ForStart, n3ForEnd ) );
|
conf.setN3Optional( Arrays.asList( n3ForNewPresentation,
|
||||||
|
n3ForExistingPresentation,
|
||||||
|
n3ForNewConferenceNewPres,
|
||||||
|
n3ForNewConferenceExistingPres,
|
||||||
|
n3ForExistingConferenceNewPres,
|
||||||
|
n3ForExistingConferenceExistingPres,
|
||||||
|
n3ForStart,
|
||||||
|
n3ForEnd ) );
|
||||||
|
|
||||||
conf.addNewResource("presentation", DEFAULT_NS_FOR_NEW_RESOURCE);
|
conf.addNewResource("presentation", DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||||
conf.addNewResource("newConference", DEFAULT_NS_FOR_NEW_RESOURCE);
|
conf.addNewResource("newConference", DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||||
|
@ -175,25 +182,34 @@ public class AddPresenterRoleToPersonGenerator extends VivoBaseGenerator impleme
|
||||||
final static String n3ForNewPresentation =
|
final static String n3ForNewPresentation =
|
||||||
"?role <" + roleRealizedInPred + "> ?presentation . \n" +
|
"?role <" + roleRealizedInPred + "> ?presentation . \n" +
|
||||||
"?presentation <" + realizedRolePred + "> ?role . \n" +
|
"?presentation <" + realizedRolePred + "> ?role . \n" +
|
||||||
"?presentation <" + label + "> ?presentationLabel .";
|
"?presentation <" + label + "> ?presentationLabel . \n" +
|
||||||
|
"?presentation a ?presentationType .";
|
||||||
|
|
||||||
final static String n3ForExistingPresentation =
|
final static String n3ForExistingPresentation =
|
||||||
"?role <" + roleRealizedInPred + "> ?existingPresentation . \n" +
|
"?role <" + roleRealizedInPred + "> ?existingPresentation . \n" +
|
||||||
"?existingPresentation <" + realizedRolePred + "> ?role . ";
|
"?existingPresentation <" + realizedRolePred + "> ?role . \n" +
|
||||||
|
"?existingPresentation a ?presentationType .";
|
||||||
|
|
||||||
final static String presTypeAssertion =
|
final static String n3ForNewConferenceNewPres =
|
||||||
"?presentation a ?presentationType .";
|
|
||||||
|
|
||||||
final static String n3ForNewConference =
|
|
||||||
"?presentation <" + eventWithinPred + "> ?newConference . \n" +
|
"?presentation <" + eventWithinPred + "> ?newConference . \n" +
|
||||||
"?newConference <" + includesEventPred + "> ?presentation . \n" +
|
"?newConference <" + includesEventPred + "> ?presentation . \n" +
|
||||||
"?newConference a <" + conferenceClass + "> . \n" +
|
"?newConference a <" + conferenceClass + "> . \n" +
|
||||||
"?newConference <" + label + "> ?conferenceLabel .";
|
"?newConference <" + label + "> ?conferenceLabel .";
|
||||||
|
|
||||||
final static String n3ForExistingConference =
|
final static String n3ForNewConferenceExistingPres =
|
||||||
"?existingConference a <" + conferenceClass + "> . \n" +
|
"?existingPresentation <" + eventWithinPred + "> ?newConference . \n" +
|
||||||
|
"?newConference <" + includesEventPred + "> ?existingPresentation . \n" +
|
||||||
|
"?newConference a <" + conferenceClass + "> . \n" +
|
||||||
|
"?newConference <" + label + "> ?conferenceLabel .";
|
||||||
|
|
||||||
|
final static String n3ForExistingConferenceNewPres =
|
||||||
"?existingConference <" + includesEventPred + "> ?presentation . \n" +
|
"?existingConference <" + includesEventPred + "> ?presentation . \n" +
|
||||||
"?presentation <" + eventWithinPred + "> ?existingConference . ";
|
"?presentation <" + eventWithinPred + "> ?existingConference . \n" +
|
||||||
|
"?presentation <" + label + "> ?presentationLabel . ";
|
||||||
|
|
||||||
|
final static String n3ForExistingConferenceExistingPres =
|
||||||
|
"?existingConference <" + includesEventPred + "> ?existingPresentation . \n" +
|
||||||
|
"?existingPresentation <" + eventWithinPred + "> ?existingConference . ";
|
||||||
|
|
||||||
final static String n3ForStart =
|
final static String n3ForStart =
|
||||||
"?role <" + roleToInterval + "> ?intervalNode . \n" +
|
"?role <" + roleToInterval + "> ?intervalNode . \n" +
|
||||||
|
|
|
@ -142,20 +142,34 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
|
|
||||||
/***N3 strings both required and optional***/
|
/***N3 strings both required and optional***/
|
||||||
private List<String> generateN3Optional() {
|
private List<String> generateN3Optional() {
|
||||||
return list(getN3ForNewCollection(),
|
return list(getN3ForNewPub(),
|
||||||
|
getN3ForExistingPub(),
|
||||||
|
getN3ForNewCollection(),
|
||||||
getN3ForNewBook(),
|
getN3ForNewBook(),
|
||||||
getN3ForNewConference(),
|
getN3ForNewConference(),
|
||||||
getN3ForNewEvent(),
|
getN3ForNewEvent(),
|
||||||
getN3ForNewEditor(),
|
getN3ForNewEditor(),
|
||||||
getN3ForNewPublisher(),
|
getN3ForNewPublisher(),
|
||||||
|
getN3ForNewCollectionNewPub(),
|
||||||
|
getN3ForNewBookNewPub(),
|
||||||
|
getN3ForNewConferenceNewPub(),
|
||||||
|
getN3ForNewEventNewPub(),
|
||||||
|
getN3ForNewEditorNewPub(),
|
||||||
|
getN3ForNewPublisherNewPub(),
|
||||||
getN3ForCollection(),
|
getN3ForCollection(),
|
||||||
getN3ForBook(),
|
getN3ForBook(),
|
||||||
getN3ForConference(),
|
getN3ForConference(),
|
||||||
getN3ForEvent(),
|
getN3ForEvent(),
|
||||||
getN3ForEditor(),
|
getN3ForEditor(),
|
||||||
|
getN3ForPublisher(),
|
||||||
|
getN3ForCollectionNewPub(),
|
||||||
|
getN3ForBookNewPub(),
|
||||||
|
getN3ForConferenceNewPub(),
|
||||||
|
getN3ForEventNewPub(),
|
||||||
|
getN3ForEditorNewPub(),
|
||||||
|
getN3ForPublisherNewPub(),
|
||||||
getN3FirstNameAssertion(),
|
getN3FirstNameAssertion(),
|
||||||
getN3LastNameAssertion(),
|
getN3LastNameAssertion(),
|
||||||
getN3ForPublisher(),
|
|
||||||
getN3ForLocaleAssertion(),
|
getN3ForLocaleAssertion(),
|
||||||
getN3ForVolumeAssertion(),
|
getN3ForVolumeAssertion(),
|
||||||
getN3ForNumberAssertion(),
|
getN3ForNumberAssertion(),
|
||||||
|
@ -168,10 +182,7 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
|
|
||||||
|
|
||||||
private List<String> generateN3Required() {
|
private List<String> generateN3Required() {
|
||||||
return list(getAuthorshipN3(),
|
return list(getAuthorshipN3()
|
||||||
getN3ForNewPub(),
|
|
||||||
getN3NewPubNameAssertion(),
|
|
||||||
getN3NewPubTypeAssertion()
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,27 +193,26 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
"?person core:authorInAuthorship ?authorshipUri .";
|
"?person core:authorInAuthorship ?authorshipUri .";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getN3ForNewPub() {
|
||||||
|
return "@prefix core: <" + vivoCore + "> ." +
|
||||||
|
"?newPublication a ?pubType ." +
|
||||||
|
"?newPublication <" + label + "> ?title ." +
|
||||||
|
"?authorshipUri core:linkedInformationResource ?newPublication ." +
|
||||||
|
"?newPublication core:informationResourceInAuthorship ?authorshipUri .";
|
||||||
|
}
|
||||||
|
|
||||||
private String getN3ForExistingPub() {
|
private String getN3ForExistingPub() {
|
||||||
return "@prefix core: <" + vivoCore + "> ." +
|
return "@prefix core: <" + vivoCore + "> ." +
|
||||||
"?authorshipUri core:linkedInformationResource ?pubUri ." +
|
"?authorshipUri core:linkedInformationResource ?pubUri ." +
|
||||||
"?pubUri core:informationResourceInAuthorship ?authorshipUri .";
|
"?pubUri core:informationResourceInAuthorship ?authorshipUri .";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForNewPub() {
|
private String getN3ForNewCollectionNewPub() {
|
||||||
return "@prefix core: <" + vivoCore + "> ." +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri a ?pubType ;" +
|
"?newPublication vivo:hasPublicationVenue ?newCollection . \n" +
|
||||||
"<" + label + "> ?title ." +
|
"?newCollection a <" + collectionClass + "> . \n" +
|
||||||
"?authorshipUri core:linkedInformationResource ?pubUri ." +
|
"?newCollection vivo:publicationVenueFor ?newPublication . \n" +
|
||||||
"?pubUri core:informationResourceInAuthorship ?authorshipUri .";
|
"?newCollection <" + label + "> ?collection .";
|
||||||
}
|
|
||||||
|
|
||||||
private String getN3NewPubNameAssertion() {
|
|
||||||
return "?pubUri <" + label + "> ?title .";
|
|
||||||
}
|
|
||||||
|
|
||||||
private String getN3NewPubTypeAssertion() {
|
|
||||||
return "?pubUri a ?pubType . ";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForNewCollection() {
|
private String getN3ForNewCollection() {
|
||||||
|
@ -213,6 +223,12 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
"?newCollection <" + label + "> ?collection .";
|
"?newCollection <" + label + "> ?collection .";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getN3ForCollectionNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication vivo:hasPublicationVenue ?collectionUri . \n" +
|
||||||
|
"?collectionUri vivo:publicationVenueFor ?newPublication . ";
|
||||||
|
}
|
||||||
|
|
||||||
private String getN3ForCollection() {
|
private String getN3ForCollection() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri vivo:hasPublicationVenue ?collectionUri . \n" +
|
"?pubUri vivo:hasPublicationVenue ?collectionUri . \n" +
|
||||||
|
@ -233,6 +249,20 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
"?bookUri vivo:publicationVenueFor ?pubUri . ";
|
"?bookUri vivo:publicationVenueFor ?pubUri . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getN3ForNewBookNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication vivo:hasPublicationVenue ?newBook . \n" +
|
||||||
|
"?newBook a <" + bookClass + "> . \n" +
|
||||||
|
"?newBook vivo:publicationVenueFor ?newPublication . \n " +
|
||||||
|
"?newBook <" + label + "> ?book .";
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getN3ForBookNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication vivo:hasPublicationVenue ?bookUri . \n" +
|
||||||
|
"?bookUri vivo:publicationVenueFor ?newPublication . ";
|
||||||
|
}
|
||||||
|
|
||||||
private String getN3ForNewConference() {
|
private String getN3ForNewConference() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + presentedAtPred + "> ?newConference . \n" +
|
"?pubUri <" + presentedAtPred + "> ?newConference . \n" +
|
||||||
|
@ -247,6 +277,20 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
"?conferenceUri vivo:includesEvent ?pubUri . ";
|
"?conferenceUri vivo:includesEvent ?pubUri . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getN3ForNewConferenceNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication <" + presentedAtPred + "> ?newConference . \n" +
|
||||||
|
"?newConference a <" + conferenceClass + "> . \n" +
|
||||||
|
"?newConference vivo:includesEvent ?newPublication . \n" +
|
||||||
|
"?newConference <" + label + "> ?conference .";
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getN3ForConferenceNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication <" + presentedAtPred + "> ?conferenceUri . \n" +
|
||||||
|
"?conferenceUri vivo:includesEvent ?newPublication . ";
|
||||||
|
}
|
||||||
|
|
||||||
private String getN3ForNewEvent() {
|
private String getN3ForNewEvent() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri vivo:proceedingsOf ?newEvent . \n" +
|
"?pubUri vivo:proceedingsOf ?newEvent . \n" +
|
||||||
|
@ -261,6 +305,20 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
"?eventUri vivo:hasProceedings ?pubUri . ";
|
"?eventUri vivo:hasProceedings ?pubUri . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getN3ForNewEventNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication vivo:proceedingsOf ?newEvent . \n" +
|
||||||
|
"?newEvent a <" + conferenceClass + "> . \n" +
|
||||||
|
"?newEvent vivo:hasProceedings ?newPublication . \n" +
|
||||||
|
"?newEvent <" + label + "> ?event .";
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getN3ForEventNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication vivo:proceedingsOf ?eventUri . \n" +
|
||||||
|
"?eventUri vivo:hasProceedings ?newPublication . ";
|
||||||
|
}
|
||||||
|
|
||||||
private String getN3ForNewEditor() {
|
private String getN3ForNewEditor() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri vivo:editor ?newEditor . \n" +
|
"?pubUri vivo:editor ?newEditor . \n" +
|
||||||
|
@ -275,14 +333,18 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
"?editorUri vivo:editorOf ?pubUri . ";
|
"?editorUri vivo:editorOf ?pubUri . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3FirstNameAssertion() {
|
private String getN3ForNewEditorNewPub() {
|
||||||
return "@prefix foaf: <" + foaf + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?newEditor foaf:firstName ?firstName .";
|
"?newPublication vivo:editor ?newEditor . \n" +
|
||||||
|
"?newEditor a <" + editorClass + "> . \n" +
|
||||||
|
"?newEditor vivo:editorOf ?newPublication . \n" +
|
||||||
|
"?newEditor <" + label + "> ?editor .";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3LastNameAssertion() {
|
private String getN3ForEditorNewPub() {
|
||||||
return "@prefix foaf: <" + foaf + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?newEditor foaf:lastName ?lastName .";
|
"?newPublication vivo:editor ?editorUri . \n" +
|
||||||
|
"?editorUri vivo:editorOf ?newPublication . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForNewPublisher() {
|
private String getN3ForNewPublisher() {
|
||||||
|
@ -299,39 +361,63 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
"?publisherUri vivo:publisherOf ?pubUri . ";
|
"?publisherUri vivo:publisherOf ?pubUri . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getN3ForNewPublisherNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication vivo:publisher ?newPublisher . \n" +
|
||||||
|
"?newPublisher a <" + publisherClass + "> . \n" +
|
||||||
|
"?newPublisher vivo:publisherOf ?newPublication . \n" +
|
||||||
|
"?newPublisher <" + label + "> ?publisher .";
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getN3ForPublisherNewPub() {
|
||||||
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
|
"?newPublication vivo:publisher ?publisherUri . \n" +
|
||||||
|
"?publisherUri vivo:publisherOf ?newPublication . ";
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getN3FirstNameAssertion() {
|
||||||
|
return "@prefix foaf: <" + foaf + "> . \n" +
|
||||||
|
"?newEditor foaf:firstName ?firstName .";
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getN3LastNameAssertion() {
|
||||||
|
return "@prefix foaf: <" + foaf + "> . \n" +
|
||||||
|
"?newEditor foaf:lastName ?lastName .";
|
||||||
|
}
|
||||||
|
|
||||||
private String getN3ForLocaleAssertion() {
|
private String getN3ForLocaleAssertion() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + localePred + "> ?locale . ";
|
"?newPublication <" + localePred + "> ?locale . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForVolumeAssertion() {
|
private String getN3ForVolumeAssertion() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + volumePred + "> ?volume . ";
|
"?newPublication <" + volumePred + "> ?volume . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForNumberAssertion() {
|
private String getN3ForNumberAssertion() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + numberPred + "> ?number . ";
|
"?newPublication <" + numberPred + "> ?number . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForIssueAssertion() {
|
private String getN3ForIssueAssertion() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + issuePred + "> ?issue . ";
|
"?newPublication <" + issuePred + "> ?issue . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForStartPageAssertion() {
|
private String getN3ForStartPageAssertion() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + startPagePred + "> ?startPage . ";
|
"?newPublication <" + startPagePred + "> ?startPage . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForEndPageAssertion() {
|
private String getN3ForEndPageAssertion() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + endPagePred + ">?endPage . ";
|
"?newPublication <" + endPagePred + ">?endPage . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForDateTimeAssertion() {
|
private String getN3ForDateTimeAssertion() {
|
||||||
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
return "@prefix vivo: <" + vivoCore + "> . \n" +
|
||||||
"?pubUri <" + dateTimePred + "> ?dateTimeNode . \n" +
|
"?newPublication <" + dateTimePred + "> ?dateTimeNode . \n" +
|
||||||
"?dateTimeNode a <" + dateTimeValueType + "> . \n" +
|
"?dateTimeNode a <" + dateTimeValueType + "> . \n" +
|
||||||
"?dateTimeNode <" + dateTimeValue + "> ?dateTime-value . \n" +
|
"?dateTimeNode <" + dateTimeValue + "> ?dateTime-value . \n" +
|
||||||
"?dateTimeNode <" + dateTimePrecision + "> ?dateTime-precision . ";
|
"?dateTimeNode <" + dateTimePrecision + "> ?dateTime-precision . ";
|
||||||
|
@ -343,7 +429,7 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
|
|
||||||
HashMap<String, String> newResources = new HashMap<String, String>();
|
HashMap<String, String> newResources = new HashMap<String, String>();
|
||||||
newResources.put("authorshipUri", DEFAULT_NS_TOKEN);
|
newResources.put("authorshipUri", DEFAULT_NS_TOKEN);
|
||||||
newResources.put("pubUri", DEFAULT_NS_TOKEN);
|
newResources.put("newPublication", DEFAULT_NS_TOKEN);
|
||||||
newResources.put("newCollection", DEFAULT_NS_TOKEN);
|
newResources.put("newCollection", DEFAULT_NS_TOKEN);
|
||||||
newResources.put("newBook", DEFAULT_NS_TOKEN);
|
newResources.put("newBook", DEFAULT_NS_TOKEN);
|
||||||
newResources.put("newConference", DEFAULT_NS_TOKEN);
|
newResources.put("newConference", DEFAULT_NS_TOKEN);
|
||||||
|
@ -371,6 +457,7 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
List<String> urisOnForm = new ArrayList<String>();
|
List<String> urisOnForm = new ArrayList<String>();
|
||||||
//add role activity and roleActivityType to uris on form
|
//add role activity and roleActivityType to uris on form
|
||||||
urisOnForm.add("pubType");
|
urisOnForm.add("pubType");
|
||||||
|
urisOnForm.add("pubUri");
|
||||||
urisOnForm.add("collectionUri");
|
urisOnForm.add("collectionUri");
|
||||||
urisOnForm.add("bookUri");
|
urisOnForm.add("bookUri");
|
||||||
urisOnForm.add("conferenceUri");
|
urisOnForm.add("conferenceUri");
|
||||||
|
@ -472,8 +559,6 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private void setPubUriField(EditConfigurationVTwo editConfiguration) {
|
private void setPubUriField(EditConfigurationVTwo editConfiguration) {
|
||||||
editConfiguration.addField(new FieldVTwo().
|
editConfiguration.addField(new FieldVTwo().
|
||||||
setName("pubUri"));
|
setName("pubUri"));
|
||||||
//Bdc34: What is this for? I'm sure that this will break autocomplete
|
|
||||||
//setObjectClassUri(personClass));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setCollectionLabelField(EditConfigurationVTwo editConfiguration) {
|
private void setCollectionLabelField(EditConfigurationVTwo editConfiguration) {
|
||||||
|
@ -495,8 +580,6 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private void setCollectionUriField(EditConfigurationVTwo editConfiguration) {
|
private void setCollectionUriField(EditConfigurationVTwo editConfiguration) {
|
||||||
editConfiguration.addField(new FieldVTwo().
|
editConfiguration.addField(new FieldVTwo().
|
||||||
setName("collectionUri"));
|
setName("collectionUri"));
|
||||||
//Bdc34: What is this for? I'm sure that commenting this out will break autocomplete
|
|
||||||
//setObjectClassUri(collectionClass));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setBookLabelField(EditConfigurationVTwo editConfiguration) {
|
private void setBookLabelField(EditConfigurationVTwo editConfiguration) {
|
||||||
|
@ -518,8 +601,6 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private void setBookUriField(EditConfigurationVTwo editConfiguration) {
|
private void setBookUriField(EditConfigurationVTwo editConfiguration) {
|
||||||
editConfiguration.addField(new FieldVTwo().
|
editConfiguration.addField(new FieldVTwo().
|
||||||
setName("bookUri"));
|
setName("bookUri"));
|
||||||
//Bdc34: What is this for? I'm sure that commenting this out will break autocomplete
|
|
||||||
//setObjectClassUri(bookClass));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setConferenceLabelField(EditConfigurationVTwo editConfiguration) {
|
private void setConferenceLabelField(EditConfigurationVTwo editConfiguration) {
|
||||||
|
@ -541,8 +622,6 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private void setConferenceUriField(EditConfigurationVTwo editConfiguration) {
|
private void setConferenceUriField(EditConfigurationVTwo editConfiguration) {
|
||||||
editConfiguration.addField(new FieldVTwo().
|
editConfiguration.addField(new FieldVTwo().
|
||||||
setName("conferenceUri"));
|
setName("conferenceUri"));
|
||||||
//Bdc34: What is this for? I'm sure that commenting this out will break autocomplete
|
|
||||||
//setObjectClassUri(conferenceClass));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setEventLabelField(EditConfigurationVTwo editConfiguration) {
|
private void setEventLabelField(EditConfigurationVTwo editConfiguration) {
|
||||||
|
@ -580,7 +659,6 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private void setEventUriField(EditConfigurationVTwo editConfiguration) {
|
private void setEventUriField(EditConfigurationVTwo editConfiguration) {
|
||||||
editConfiguration.addField(new FieldVTwo().
|
editConfiguration.addField(new FieldVTwo().
|
||||||
setName("eventUri"));
|
setName("eventUri"));
|
||||||
//setObjectClassUri(conferenceClass));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setEditorLabelField(EditConfigurationVTwo editConfiguration) {
|
private void setEditorLabelField(EditConfigurationVTwo editConfiguration) {
|
||||||
|
@ -602,8 +680,6 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private void setEditorUriField(EditConfigurationVTwo editConfiguration) {
|
private void setEditorUriField(EditConfigurationVTwo editConfiguration) {
|
||||||
editConfiguration.addField(new FieldVTwo().
|
editConfiguration.addField(new FieldVTwo().
|
||||||
setName("editorUri"));
|
setName("editorUri"));
|
||||||
//Bdc34: What is this for? I'm sure that commenting this out will break autocomplete
|
|
||||||
//setObjectClassUri(editorClass));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setPublisherLabelField(EditConfigurationVTwo editConfiguration) {
|
private void setPublisherLabelField(EditConfigurationVTwo editConfiguration) {
|
||||||
|
@ -625,8 +701,6 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private void setPublisherUriField(EditConfigurationVTwo editConfiguration) {
|
private void setPublisherUriField(EditConfigurationVTwo editConfiguration) {
|
||||||
editConfiguration.addField(new FieldVTwo().
|
editConfiguration.addField(new FieldVTwo().
|
||||||
setName("publisherUri"));
|
setName("publisherUri"));
|
||||||
//Bdc34: What is this for? I'm sure that commenting this out will break autocomplete
|
|
||||||
//setObjectClassUri(publisherClass));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setLocaleField(EditConfigurationVTwo editConfiguration) {
|
private void setLocaleField(EditConfigurationVTwo editConfiguration) {
|
||||||
|
|
|
@ -154,7 +154,7 @@ public abstract class AddRoleToPersonTwoStageGenerator extends BaseEditConfigura
|
||||||
editConfiguration.setN3Optional( list(
|
editConfiguration.setN3Optional( list(
|
||||||
getN3ForNewRoleActivity(),
|
getN3ForNewRoleActivity(),
|
||||||
getN3ForExistingRoleActivity(),
|
getN3ForExistingRoleActivity(),
|
||||||
getN3ForActivityType(),
|
// getN3ForActivityType(),
|
||||||
getN3RoleLabelAssertion(),
|
getN3RoleLabelAssertion(),
|
||||||
getN3ForStart(),
|
getN3ForStart(),
|
||||||
getN3ForEnd() ));
|
getN3ForEnd() ));
|
||||||
|
@ -206,26 +206,24 @@ public abstract class AddRoleToPersonTwoStageGenerator extends BaseEditConfigura
|
||||||
List<String> n3ForNewRoleActivity = new ArrayList<String>();
|
List<String> n3ForNewRoleActivity = new ArrayList<String>();
|
||||||
n3ForNewRoleActivity.add("?role " + getRoleToActivityPlaceholder() + " ?roleActivity .\n"+
|
n3ForNewRoleActivity.add("?role " + getRoleToActivityPlaceholder() + " ?roleActivity .\n"+
|
||||||
"?roleActivity " + getActivityToRolePlaceholder() + " ?role . \n" +
|
"?roleActivity " + getActivityToRolePlaceholder() + " ?role . \n" +
|
||||||
"?roleActivity <" + RDFS.label.getURI() + "> ?activityLabel .");
|
"?roleActivity <" + RDFS.label.getURI() + "> ?activityLabel . \n" +
|
||||||
|
"?roleActivity a ?roleActivityType .");
|
||||||
return n3ForNewRoleActivity;
|
return n3ForNewRoleActivity;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> getN3ForExistingRoleActivity() {
|
private List<String> getN3ForExistingRoleActivity() {
|
||||||
List<String> n3ForExistingRoleActivity = new ArrayList<String>();
|
List<String> n3ForExistingRoleActivity = new ArrayList<String>();
|
||||||
n3ForExistingRoleActivity.add("?role " + getRoleToActivityPlaceholder() + " ?existingRoleActivity .\n"+
|
n3ForExistingRoleActivity.add("?role " + getRoleToActivityPlaceholder() + " ?existingRoleActivity .\n"+
|
||||||
"?existingRoleActivity " + getActivityToRolePlaceholder() + " ?role . ");
|
"?existingRoleActivity " + getActivityToRolePlaceholder() + " ?role . \n" +
|
||||||
|
"?existingRoleActivity a ?roleActivityType .");
|
||||||
return n3ForExistingRoleActivity;
|
return n3ForExistingRoleActivity;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForActivityType() {
|
|
||||||
return "?roleActivity a ?roleActivityType .";
|
|
||||||
}
|
|
||||||
|
|
||||||
private String getN3RoleLabelAssertion() {
|
private String getN3RoleLabelAssertion() {
|
||||||
return "?role <" + RDFS.label.getURI() + "> ?roleLabel .";
|
return "?role <" + RDFS.label.getURI() + "> ?roleLabel .";
|
||||||
}
|
}
|
||||||
|
|
||||||
//Method b/c used in two locations, n3 optional and n3 assertions
|
|
||||||
private List<String> getN3ForStart() {
|
private List<String> getN3ForStart() {
|
||||||
List<String> n3ForStart = new ArrayList<String>();
|
List<String> n3ForStart = new ArrayList<String>();
|
||||||
n3ForStart.add("?role <" + RoleToIntervalURI + "> ?intervalNode ." +
|
n3ForStart.add("?role <" + RoleToIntervalURI + "> ?intervalNode ." +
|
||||||
|
|
|
@ -113,62 +113,51 @@ public class OrganizationHasPositionHistoryGenerator extends VivoBaseGenerator
|
||||||
private static final String N3_NEW_POSITION = ""
|
private static final String N3_NEW_POSITION = ""
|
||||||
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
||||||
+ "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . \n"
|
+ "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . \n"
|
||||||
+ "\n" //
|
|
||||||
+ "?organization core:organizationForPosition ?position . \n"
|
+ "?organization core:organizationForPosition ?position . \n"
|
||||||
+ "\n" //
|
+ "?position a core:Position . \n"
|
||||||
+ "?position a core:Position , ?positionType ; \n"
|
+ "?position a ?positionType . \n"
|
||||||
+ " rdfs:label ?positionTitle ; \n"
|
+ "?position rdfs:label ?positionTitle . \n"
|
||||||
+ " core:positionInOrganization ?organization ; ";
|
+ "?position core:positionInOrganization ?organization . ";
|
||||||
|
|
||||||
private static final String N3_NEW_PERSON = ""
|
private static final String N3_NEW_PERSON = ""
|
||||||
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
||||||
+ "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . \n"
|
+ "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . \n"
|
||||||
+ "@prefix foaf: <http://xmlns.com/foaf/0.1/> . \n"
|
+ "@prefix foaf: <http://xmlns.com/foaf/0.1/> . \n"
|
||||||
+ "\n" //
|
+ "?position core:positionForPerson ?person . \n"
|
||||||
+ "?position core:positionForPerson ?person . \n" //
|
|
||||||
+ "?person core:personInPosition ?position . \n"
|
+ "?person core:personInPosition ?position . \n"
|
||||||
+ "?person a foaf:Person . \n"
|
+ "?person a foaf:Person . \n"
|
||||||
+ "?person rdfs:label ?personLabel";
|
+ "?person rdfs:label ?personLabel . ";
|
||||||
|
|
||||||
private static final String N3_NEW_FIRST_NAME = ""
|
private static final String N3_NEW_FIRST_NAME = ""
|
||||||
+ "@prefix foaf: <http://xmlns.com/foaf/0.1/> . \n"
|
+ "@prefix foaf: <http://xmlns.com/foaf/0.1/> . \n"
|
||||||
+ "\n" //
|
|
||||||
+ "?person foaf:firstName ?firstName .";
|
+ "?person foaf:firstName ?firstName .";
|
||||||
|
|
||||||
private static final String N3_NEW_LAST_NAME = ""
|
private static final String N3_NEW_LAST_NAME = ""
|
||||||
+ "@prefix foaf: <http://xmlns.com/foaf/0.1/> . \n"
|
+ "@prefix foaf: <http://xmlns.com/foaf/0.1/> . \n"
|
||||||
+ "\n" //
|
|
||||||
+ "?person foaf:lastName ?lastName .";
|
+ "?person foaf:lastName ?lastName .";
|
||||||
|
|
||||||
private static final String N3_EXISTING_PERSON = ""
|
private static final String N3_EXISTING_PERSON = ""
|
||||||
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
||||||
+ "\n" //
|
+ "?position core:positionForPerson ?existingPerson . \n"
|
||||||
+ "?position core:positionForPerson ?existingPerson . \n" //
|
+ "?existingPerson core:personInPosition ?position . \n";
|
||||||
+ "?existingPerson core:personInPosition ?position . ";
|
|
||||||
|
|
||||||
private static final String N3_NEW_START_NODE = ""
|
private static final String N3_NEW_START_NODE = ""
|
||||||
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
||||||
+ "\n" //
|
|
||||||
+ "?position core:dateTimeInterval ?intervalNode . \n"
|
+ "?position core:dateTimeInterval ?intervalNode . \n"
|
||||||
+ "\n" //
|
+ "?intervalNode a core:DateTimeInterval . \n"
|
||||||
+ "?intervalNode a core:DateTimeInterval ; \n"
|
+ "?intervalNode core:start ?startNode . \n "
|
||||||
+ " core:start ?startNode . \n "
|
+ "?startNode a core:DateTimeValue . \n"
|
||||||
+ "\n" //
|
+ "?startNode core:dateTime ?startField-value. \n"
|
||||||
+ "?startNode a core:DateTimeValue ; \n"
|
+ "?startNode core:dateTimePrecision ?startField-precision . ";
|
||||||
+ " core:dateTime ?startField-value ; \n"
|
|
||||||
+ " core:dateTimePrecision ?startField-precision . ";
|
|
||||||
|
|
||||||
private static final String N3_NEW_END_NODE = ""
|
private static final String N3_NEW_END_NODE = ""
|
||||||
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
+ "@prefix core: <http://vivoweb.org/ontology/core#> . \n"
|
||||||
+ "\n" //
|
|
||||||
+ "?position core:dateTimeInterval ?intervalNode . \n"
|
+ "?position core:dateTimeInterval ?intervalNode . \n"
|
||||||
+ "\n" //
|
+ "?intervalNode a core:DateTimeInterval . \n"
|
||||||
+ "?intervalNode a core:DateTimeInterval ; \n"
|
+ "?intervalNode core:end ?endNode . \n "
|
||||||
+ " core:end ?endNode . \n "
|
+ "?endNode a core:DateTimeValue . \n"
|
||||||
+ "\n" //
|
+ "?endNode core:dateTime ?endField-value . \n"
|
||||||
+ "?endNode a core:DateTimeValue ; \n"
|
+ "?endNode core:dateTimePrecision ?endField-precision . ";
|
||||||
+ " core:dateTime ?endField-value ; \n"
|
|
||||||
+ " core:dateTimePrecision ?endField-precision . ";
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq,
|
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq,
|
||||||
|
@ -197,8 +186,6 @@ public class OrganizationHasPositionHistoryGenerator extends VivoBaseGenerator
|
||||||
conf.setUrisOnform(Arrays.asList("existingPerson", "position", "positionType"));
|
conf.setUrisOnform(Arrays.asList("existingPerson", "position", "positionType"));
|
||||||
conf.addSparqlForExistingUris("positionType",
|
conf.addSparqlForExistingUris("positionType",
|
||||||
QUERY_EXISTING_POSITION_TYPE);
|
QUERY_EXISTING_POSITION_TYPE);
|
||||||
conf.addSparqlForExistingUris("person", QUERY_EXISTING_PERSON);
|
|
||||||
|
|
||||||
conf.addSparqlForExistingUris("intervalNode",
|
conf.addSparqlForExistingUris("intervalNode",
|
||||||
QUERY_EXISTING_INTERVAL_NODE);
|
QUERY_EXISTING_INTERVAL_NODE);
|
||||||
conf.addSparqlForExistingUris("startNode", QUERY_EXISTING_START_NODE);
|
conf.addSparqlForExistingUris("startNode", QUERY_EXISTING_START_NODE);
|
||||||
|
|
|
@ -214,7 +214,8 @@ public class PersonHasAwardOrHonorGenerator extends VivoBaseGenerator implements
|
||||||
|
|
||||||
final static String n3ForExistingOrgNewAwardAssertion =
|
final static String n3ForExistingOrgNewAwardAssertion =
|
||||||
"?award <" + awardConferredByPred +"> ?existingOrg . \n" +
|
"?award <" + awardConferredByPred +"> ?existingOrg . \n" +
|
||||||
"?existingOrg <" + awardConferredPred + "> ?award . ";
|
"?existingOrg <" + awardConferredPred + "> ?award . \n" +
|
||||||
|
"?award <"+ label + "> ?awardLabel .";
|
||||||
|
|
||||||
final static String n3ForExistingOrgExistingAwardAssertion =
|
final static String n3ForExistingOrgExistingAwardAssertion =
|
||||||
"?existingAward <" + awardConferredByPred +"> ?existingOrg . \n" +
|
"?existingAward <" + awardConferredByPred +"> ?existingOrg . \n" +
|
||||||
|
@ -224,6 +225,7 @@ public class PersonHasAwardOrHonorGenerator extends VivoBaseGenerator implements
|
||||||
"?newOrg a <" + orgClass + "> . \n" +
|
"?newOrg a <" + orgClass + "> . \n" +
|
||||||
"?award <" + awardConferredByPred +"> ?newOrg . \n" +
|
"?award <" + awardConferredByPred +"> ?newOrg . \n" +
|
||||||
"?newOrg <" + awardConferredPred + "> ?award . \n" +
|
"?newOrg <" + awardConferredPred + "> ?award . \n" +
|
||||||
|
"?award <"+ label + "> ?awardLabel . \n" +
|
||||||
"?newOrg <"+ label + "> ?orgLabel .";
|
"?newOrg <"+ label + "> ?orgLabel .";
|
||||||
|
|
||||||
final static String n3ForNewOrgExistingAwardAssertion =
|
final static String n3ForNewOrgExistingAwardAssertion =
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class PersonHasEducationalTraining extends VivoBaseGenerator implements
|
||||||
|
|
||||||
conf.setN3Required( Arrays.asList( n3ForNewEdTraining, trainingTypeAssertion ) );
|
conf.setN3Required( Arrays.asList( n3ForNewEdTraining, trainingTypeAssertion ) );
|
||||||
conf.setN3Optional(Arrays.asList(
|
conf.setN3Optional(Arrays.asList(
|
||||||
n3ForNewOrg, n3ForExistingOrg, orgTypeAssertion, majorFieldAssertion, degreeAssertion,
|
n3ForNewOrg, n3ForExistingOrg, majorFieldAssertion, degreeAssertion,
|
||||||
deptAssertion, infoAssertion, n3ForStart, n3ForEnd ));
|
deptAssertion, infoAssertion, n3ForStart, n3ForEnd ));
|
||||||
|
|
||||||
conf.addNewResource("edTraining", DEFAULT_NS_FOR_NEW_RESOURCE);
|
conf.addNewResource("edTraining", DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||||
|
@ -210,15 +210,14 @@ public class PersonHasEducationalTraining extends VivoBaseGenerator implements
|
||||||
|
|
||||||
final static String n3ForNewOrg =
|
final static String n3ForNewOrg =
|
||||||
"?edTraining <"+ trainingAtOrg +"> ?newOrg . \n" +
|
"?edTraining <"+ trainingAtOrg +"> ?newOrg . \n" +
|
||||||
"?newOrg ?inverseTrainingAtOrg ?edTraining .\n" +
|
"?newOrg ?inverseTrainingAtOrg ?edTraining . \n" +
|
||||||
"?newOrg <"+ label +"> ?orgLabel .";
|
"?newOrg <"+ label +"> ?orgLabel . \n" +
|
||||||
|
"?newOrg a ?orgType .";
|
||||||
|
|
||||||
final static String n3ForExistingOrg =
|
final static String n3ForExistingOrg =
|
||||||
"?edTraining <"+ trainingAtOrg +"> ?existingOrg . \n" +
|
"?edTraining <"+ trainingAtOrg +"> ?existingOrg . \n" +
|
||||||
"?existingOrg ?inverseTrainingAtOrg ?edTraining . ";
|
"?existingOrg ?inverseTrainingAtOrg ?edTraining . \n" +
|
||||||
|
"?existingOrg a ?orgType . ";
|
||||||
final static String orgTypeAssertion =
|
|
||||||
"?newOrg a ?orgType .";
|
|
||||||
|
|
||||||
final static String degreeAssertion =
|
final static String degreeAssertion =
|
||||||
"?edTraining <"+ degreeEarned +"> ?degree .\n"+
|
"?edTraining <"+ degreeEarned +"> ?degree .\n"+
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
|
||||||
conf.setN3Required( Arrays.asList( n3ForNewPosition,
|
conf.setN3Required( Arrays.asList( n3ForNewPosition,
|
||||||
positionTitleAssertion,
|
positionTitleAssertion,
|
||||||
positionTypeAssertion ) );
|
positionTypeAssertion ) );
|
||||||
conf.setN3Optional( Arrays.asList( n3ForNewOrg, n3ForExistingOrg, orgTypeAssertion, n3ForStart, n3ForEnd ) );
|
conf.setN3Optional( Arrays.asList( n3ForNewOrg, n3ForExistingOrg, n3ForStart, n3ForEnd ) );
|
||||||
|
|
||||||
conf.addNewResource("position", DEFAULT_NS_FOR_NEW_RESOURCE);
|
conf.addNewResource("position", DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||||
conf.addNewResource("newOrg", DEFAULT_NS_FOR_NEW_RESOURCE);
|
conf.addNewResource("newOrg", DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||||
|
@ -181,14 +181,13 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
|
||||||
final static String n3ForNewOrg =
|
final static String n3ForNewOrg =
|
||||||
"?position <" + positionInOrgPred + "> ?newOrg . \n" +
|
"?position <" + positionInOrgPred + "> ?newOrg . \n" +
|
||||||
"?newOrg <" + orgForPositionPred + "> ?position . \n" +
|
"?newOrg <" + orgForPositionPred + "> ?position . \n" +
|
||||||
"?newOrg <" + label + "> ?orgLabel .";
|
"?newOrg <" + label + "> ?orgLabel . \n" +
|
||||||
|
"?newOrg a ?orgType .";
|
||||||
|
|
||||||
final static String n3ForExistingOrg =
|
final static String n3ForExistingOrg =
|
||||||
"?position <" + positionInOrgPred + "> ?existingOrg . \n" +
|
"?position <" + positionInOrgPred + "> ?existingOrg . \n" +
|
||||||
"?existingOrg <" + orgForPositionPred + "> ?position . " ;
|
"?existingOrg <" + orgForPositionPred + "> ?position . \n" +
|
||||||
|
"?existingOrg a ?orgType .";
|
||||||
final static String orgTypeAssertion =
|
|
||||||
"?newOrg a ?orgType .";
|
|
||||||
|
|
||||||
final static String n3ForStart =
|
final static String n3ForStart =
|
||||||
"?position <" + positionToInterval + "> ?intervalNode . \n" +
|
"?position <" + positionToInterval + "> ?intervalNode . \n" +
|
||||||
|
|
Loading…
Add table
Reference in a new issue