publication form updates for ISF
This commit is contained in:
parent
4598aae578
commit
cd3ae0d0ad
2 changed files with 17 additions and 16 deletions
|
@ -145,28 +145,28 @@ public class AddAuthorsToInformationResourceGenerator extends VivoBaseGenerator
|
||||||
return getN3PrefixString() +
|
return getN3PrefixString() +
|
||||||
"?newPerson a foaf:Person ;\n" +
|
"?newPerson a foaf:Person ;\n" +
|
||||||
"<" + RDFS.label.getURI() + "> ?label .\n" +
|
"<" + RDFS.label.getURI() + "> ?label .\n" +
|
||||||
"?authorshipUri core:linkedAuthor ?newPerson .\n" +
|
"?authorshipUri core:relates ?newPerson .\n" +
|
||||||
"?newPerson core:authorInAuthorship ?authorshipUri . ";
|
"?newPerson core:relatedBy ?authorshipUri . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForExistingPerson() {
|
private String getN3ForExistingPerson() {
|
||||||
return getN3PrefixString() +
|
return getN3PrefixString() +
|
||||||
"?authorshipUri core:linkedAuthor ?personUri .\n" +
|
"?authorshipUri core:relates ?personUri .\n" +
|
||||||
"?personUri core:authorInAuthorship ?authorshipUri .";
|
"?personUri core:relatedBy ?authorshipUri .";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3NewOrg() {
|
private String getN3NewOrg() {
|
||||||
return getN3PrefixString() +
|
return getN3PrefixString() +
|
||||||
"?newOrg a foaf:Organization ;\n" +
|
"?newOrg a foaf:Organization ;\n" +
|
||||||
"<" + RDFS.label.getURI() + "> ?orgName .\n" +
|
"<" + RDFS.label.getURI() + "> ?orgName .\n" +
|
||||||
"?authorshipUri core:linkedAuthor ?newOrg .\n" +
|
"?authorshipUri core:relates ?newOrg .\n" +
|
||||||
"?newOrg core:authorInAuthorship ?authorshipUri . ";
|
"?newOrg core:relatedBy ?authorshipUri . ";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForExistingOrg() {
|
private String getN3ForExistingOrg() {
|
||||||
return getN3PrefixString() +
|
return getN3PrefixString() +
|
||||||
"?authorshipUri core:linkedAuthor ?orgUri .\n" +
|
"?authorshipUri core:relates ?orgUri .\n" +
|
||||||
"?orgUri core:authorInAuthorship ?authorshipUri .";
|
"?orgUri core:relatedBy ?authorshipUri .";
|
||||||
}
|
}
|
||||||
/** Get new resources */
|
/** Get new resources */
|
||||||
//A new authorship uri will always be created when an author is added
|
//A new authorship uri will always be created when an author is added
|
||||||
|
|
|
@ -197,22 +197,22 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
private String getAuthorshipN3() {
|
private String getAuthorshipN3() {
|
||||||
return "@prefix core: <" + vivoCore + "> . " +
|
return "@prefix core: <" + vivoCore + "> . " +
|
||||||
"?authorshipUri a core:Authorship ;" +
|
"?authorshipUri a core:Authorship ;" +
|
||||||
"core:linkedAuthor ?person ." +
|
"core:relates ?person ." +
|
||||||
"?person core:authorInAuthorship ?authorshipUri .";
|
"?person core:relatedBy ?authorshipUri .";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForNewPub() {
|
private String getN3ForNewPub() {
|
||||||
return "@prefix core: <" + vivoCore + "> ." +
|
return "@prefix core: <" + vivoCore + "> ." +
|
||||||
"?newPublication a ?pubType ." +
|
"?newPublication a ?pubType ." +
|
||||||
"?newPublication <" + label + "> ?title ." +
|
"?newPublication <" + label + "> ?title ." +
|
||||||
"?authorshipUri core:linkedInformationResource ?newPublication ." +
|
"?authorshipUri core:relates ?newPublication ." +
|
||||||
"?newPublication core:informationResourceInAuthorship ?authorshipUri .";
|
"?newPublication core:relatedBy ?authorshipUri .";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForExistingPub() {
|
private String getN3ForExistingPub() {
|
||||||
return "@prefix core: <" + vivoCore + "> ." +
|
return "@prefix core: <" + vivoCore + "> ." +
|
||||||
"?authorshipUri core:linkedInformationResource ?pubUri ." +
|
"?authorshipUri core:relates ?pubUri ." +
|
||||||
"?pubUri core:informationResourceInAuthorship ?authorshipUri .";
|
"?pubUri core:relatedBy ?authorshipUri .";
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getN3ForNewCollectionNewPub() {
|
private String getN3ForNewCollectionNewPub() {
|
||||||
|
@ -875,8 +875,9 @@ public class AddPublicationToPersonGenerator extends VivoBaseGenerator implement
|
||||||
|
|
||||||
String query = "PREFIX core:<" + vivoCore + "> " +
|
String query = "PREFIX core:<" + vivoCore + "> " +
|
||||||
"SELECT ?pubUri WHERE { " +
|
"SELECT ?pubUri WHERE { " +
|
||||||
"<" + subject + "> core:authorInAuthorship ?authorshipUri ." +
|
"<" + subject + "> core:relatedBy ?authorshipUri . " +
|
||||||
"?authorshipUri core:linkedInformationResource ?pubUri . }";
|
"?authorship a core:Authorship . " +
|
||||||
|
"?authorshipUri core:relates ?pubUri . }";
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue