diff --git a/productMods/templates/freemarker/body/individual/manageLabelsForIndividualSubmissionErrors.ftl b/productMods/templates/freemarker/body/individual/manageLabelsForIndividualSubmissionErrors.ftl
index 833f5e99..cd22dfed 100644
--- a/productMods/templates/freemarker/body/individual/manageLabelsForIndividualSubmissionErrors.ftl
+++ b/productMods/templates/freemarker/body/individual/manageLabelsForIndividualSubmissionErrors.ftl
@@ -5,8 +5,7 @@
<#--Get existing value for specific data literals and uris, in case the form is returned because of an error-->
<#assign firstNameValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "firstName")/>
<#assign lastNameValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "lastName")/>
-<#--With ISF changes, we also have a niddle name value, also add error field below-->
-<#--assign middleNameValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "middleName") /-->
+<#assign middleNameValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "middleName") />
<#assign labelValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "label")/>
<#assign newLabelLanguageValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "newLabelLanguage")/>
diff --git a/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl b/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl
index 286b4b8b..ad452e4d 100644
--- a/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl
+++ b/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl
@@ -11,6 +11,8 @@
<#--Get existing value for specific data literals and uris-->
<#assign firstNameValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "firstName")/>
<#assign lastNameValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "lastName")/>
+<#assign middleNameValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "middleName")/>
+
<#assign labelValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "label")/>
<#--If edit submission exists, then retrieve validation errors if they exist-->
@@ -51,6 +53,11 @@
+
+
+
+
+
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/ManageLabelsForPersonGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/ManageLabelsForPersonGenerator.java
index 0f2dc9a6..f524f555 100644
--- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/ManageLabelsForPersonGenerator.java
+++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/ManageLabelsForPersonGenerator.java
@@ -54,6 +54,7 @@ import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTw
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.fields.FieldVTwo;
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.preprocessors.FoafNameToRdfsLabelPreprocessor;
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.preprocessors.ManageLabelsForIndividualPreprocessor;
+import edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.preprocessors.ManageLabelsForPersonPreprocessor;
import edu.cornell.mannlib.vitro.webapp.i18n.selection.LocaleSelectionDataGetter;
import edu.cornell.mannlib.vitro.webapp.i18n.selection.LocaleSelectorUtilities;
import edu.cornell.mannlib.vitro.webapp.i18n.selection.SelectedLocale;
@@ -69,12 +70,7 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
private static String template = "manageLabelsForPerson.ftl";
private HashMap> labelsSortedByLanguage = null;
private List existingLabelLiterals = null;
- //list of language names sorted alphabetically
- private List existingSortedLanguageNameList = null;
- //This would be for the full list and can be used for the existing labels list as well
-
- private HashMap fullLanguageNameToCodeMap = null;
- private static String predicateUri = RDFS.label.getURI();
+
@Override
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) {
@@ -115,7 +111,7 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
addFormSpecificData(config, vreq);
//This preprocessor handles getting the correct label language and putting the attribute on the label
config.addEditSubmissionPreprocessor(
- new ManageLabelsForIndividualPreprocessor(config));
+ new ManageLabelsForPersonPreprocessor(config));
//This will handle generating the label from the first name, middle, and last names and also make sure to associate
//a language with that label
config.addModelChangePreprocessor(new FoafNameToRdfsLabelPreprocessor());
@@ -150,22 +146,20 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
private List generateN3Optional(VitroRequest vreq) {
List n3Optional = new ArrayList();
- String predicateUri = EditConfigurationUtils.getPredicateUri(vreq);
- String n3 = "?subject <" + predicateUri + "> ?label ";
- //n3 used if the subject is a person
- //String personN3 = this.N3_PREFIX + "?subject foaf:firstName ?firstName ; foaf:lastName ?lastName .";
- //This n3 will be different with the ISF changes
- String personN3 = this.N3_PREFIX +
+
+ String personFullNameN3 = this.N3_PREFIX +
"?subject ?individualVcard . \n" +
"?individualVcard a . \n" +
"?individualVcard ?subject . \n" +
"?individualVcard ?fullName . \n" +
- "?fullName a . \n" +
- "?fullName ?firstName . \n" +
+ "?fullName a .";
+ String personFirstNameN3 =
+ "?fullName ?firstName . ";
+ String personLastNameN3 =
"?fullName ?lastName .";
-
- n3Optional.add(n3);
- n3Optional.add(personN3);
+ String personMiddleNameN3 = "?fullName ?middleName .";
+ n3Optional.add(personFullNameN3 + "\n " + personFirstNameN3 + "\n " + personLastNameN3);
+ n3Optional.add(personMiddleNameN3);
return n3Optional;
}
@@ -174,9 +168,7 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
private void setFields(EditConfigurationVTwo editConfiguration, VitroRequest vreq, String predicateUri) {
Map fields = new HashMap();
editConfiguration.setFields(fields);
- editConfiguration.addField(new FieldVTwo().
- setName("label").
- setValidators(getLabelValidators(vreq, editConfiguration)));
+
editConfiguration.addField(new FieldVTwo(
).setName("newLabelLanguage"));
//no validators since all of this is optional
@@ -186,7 +178,7 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
setValidators(getFirstNameValidators(vreq, editConfiguration)));
editConfiguration.addField(new FieldVTwo().
setName("middleName").
- setValidators(getLastNameValidators(vreq, editConfiguration)));
+ setValidators(getMiddleNameValidators(vreq, editConfiguration)));
editConfiguration.addField(new FieldVTwo().
setName("lastName").
@@ -199,39 +191,36 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
//first and last name have validators if is person is true
private List getFirstNameValidators(VitroRequest vreq, EditConfigurationVTwo config) {
List validators = new ArrayList();
- if(isPersonType(vreq, config)) {
validators.add("nonempty");
- }
+
+ return validators;
+ }
+
+ private List getMiddleNameValidators(VitroRequest vreq, EditConfigurationVTwo config) {
+ List validators = new ArrayList();
+
return validators;
}
private List getLastNameValidators(VitroRequest vreq, EditConfigurationVTwo config) {
List validators = new ArrayList();
- if(isPersonType(vreq, config)) {
validators.add("nonempty");
- }
+
return validators;
}
- //validate label if person is not true
- private List getLabelValidators(VitroRequest vreq, EditConfigurationVTwo config) {
- List validators = new ArrayList();
- if(!isPersonType(vreq, config)) {
- validators.add("nonempty");
- }
- return validators;
- }
+
private void setUrisAndLiteralsOnForm(EditConfigurationVTwo config,
VitroRequest vreq) {
List literalsOnForm = new ArrayList();
- literalsOnForm.add("label");
literalsOnForm.add("newLabelLanguage");
//optional for person
literalsOnForm.add("firstName");
literalsOnForm.add("lastName");
+ literalsOnForm.add("middleName");
config.setLiteralsOnForm(literalsOnForm);
}
@@ -253,17 +242,6 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
private void initExistingLabels(EditConfigurationVTwo config,
VitroRequest vreq) {
this.existingLabelLiterals = this.getExistingLabels(config.getSubjectUri(), vreq);
- // this.labelsSortedByLanguage = this.getLabelsSortedByLanguage(config,vreq);
- //language names sorted for the existing languages
- // this.existingSortedLanguageNameList = getExistingSortedLanguageNamesList();
-
- //Generate a label to language code hash map
- //TODO:
-
- //HashMap labelToLanguageCode = new HashMap();
-
- //this.labels = getExistingLabels(config.getSubjectUri(), vreq);
- //this.labelsSortedByLanguage = getLabelsSortedByLanguage(config.getSubjectUri(), vreq);
}
@@ -318,15 +296,7 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
config.addFormSpecificData("subjectName", null);
}
- //Put in whether or not person type
- if(isPersonType(vreq, config)) {
- //Doing this b/c unsure how freemarker will handle boolean value from JAVA
- config.addFormSpecificData("isPersonType", "true");
- } else {
- config.addFormSpecificData("isPersonType", "false");
-
- }
-
+ config.addFormSpecificData("isPersonType", "true");
//Include whether or not editable to enable edit/remove links and add to show up
config.addFormSpecificData("editable", isEditable(vreq, config));
}
@@ -376,7 +346,6 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
//Copied from NewIndividualFormGenerator
- //TODO: Refactor so common code can be used by both generators
public String getFOAFPersonClassURI() {
return "http://xmlns.com/foaf/0.1/Person";
}
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/NewIndividualFormGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/NewIndividualFormGenerator.java
index 0fd76116..51b929a8 100644
--- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/NewIndividualFormGenerator.java
+++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/NewIndividualFormGenerator.java
@@ -41,6 +41,7 @@ public class NewIndividualFormGenerator extends BaseEditConfigurationGenerator i
));
//Optional because user may have selected either person or individual of another kind
//Person uses first name and last name whereas individual of other class would use label
+ //middle name is also optional
config.setN3Optional(list(
N3_PREFIX + "@prefix vcard: .\n"
+ " ?newInd ?newVcardInd . \n"
@@ -50,6 +51,7 @@ public class NewIndividualFormGenerator extends BaseEditConfigurationGenerator i
+ " ?newVcardName a . \n"
+ " ?newVcardName vcard:givenName ?firstName . \n"
+ " ?newVcardName vcard:familyName ?lastName .",
+ "?newVcardName ?middleName .",
N3_PREFIX + " ?newInd <" + RDFS.label.getURI() + "> ?label ."
));
@@ -58,7 +60,7 @@ public class NewIndividualFormGenerator extends BaseEditConfigurationGenerator i
config.addNewResource("newVcardName", vreq.getWebappDaoFactory().getDefaultNamespace());
config.setUrisOnform(list ());
- config.setLiteralsOnForm( list( "label", "firstName", "lastName" ));
+ config.setLiteralsOnForm( list( "label", "firstName", "lastName", "middleName" ));
setUrisAndLiteralsInScope(config);
//No SPARQL queries for existing since this is only used to create new, never for edit
@@ -67,6 +69,11 @@ public class NewIndividualFormGenerator extends BaseEditConfigurationGenerator i
setRangeDatatypeUri(XSD.xstring.getURI()).
setValidators(getFirstNameValidators(vreq)));
+ config.addField(new FieldVTwo().
+ setName("middleName").
+ setRangeDatatypeUri(XSD.xstring.getURI()).
+ setValidators(getMiddleNameValidators(vreq)));
+
config.addField(new FieldVTwo().
setName("lastName").
setRangeDatatypeUri(XSD.xstring.getURI()).
@@ -96,7 +103,12 @@ public class NewIndividualFormGenerator extends BaseEditConfigurationGenerator i
return config;
}
- //first and last name have validators if is person is true
+ private List getMiddleNameValidators(VitroRequest vreq) {
+ List validators = new ArrayList();
+ return validators;
+ }
+
+ //first and last name have validators if is person is true
private List getFirstNameValidators(VitroRequest vreq) {
List validators = new ArrayList();
if(isPersonType(vreq)) {
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/preprocessors/ManageLabelsForPersonPreprocessor.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/preprocessors/ManageLabelsForPersonPreprocessor.java
new file mode 100644
index 00000000..e6fe5830
--- /dev/null
+++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/preprocessors/ManageLabelsForPersonPreprocessor.java
@@ -0,0 +1,105 @@
+/* $This file is distributed under the terms of the license in /doc/license.txt$ */
+
+package edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.preprocessors;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+
+import com.hp.hpl.jena.ontology.OntModel;
+import com.hp.hpl.jena.rdf.model.Literal;
+import com.hp.hpl.jena.rdf.model.Model;
+import com.hp.hpl.jena.rdf.model.Property;
+import com.hp.hpl.jena.rdf.model.ResIterator;
+import com.hp.hpl.jena.rdf.model.Resource;
+import com.hp.hpl.jena.rdf.model.Statement;
+
+import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
+import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
+/*
+ * This preprocessor is used to set the language attribute on the label based on the user selection
+ * on the manage labels page when adding a new label.
+ */
+import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.BaseEditSubmissionPreprocessorVTwo;
+import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo;
+import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.MultiValueEditSubmission;
+
+public class ManageLabelsForPersonPreprocessor extends ManageLabelsForIndividualPreprocessor {
+
+
+
+
+ public ManageLabelsForPersonPreprocessor(EditConfigurationVTwo editConfig) {
+ super(editConfig);
+
+ }
+
+ @Override
+ public void preprocess(MultiValueEditSubmission inputSubmission, VitroRequest vreq) {
+ //Use the ManageLabelsForIndividualPreprocessor in addition to this code specific for person
+ super.preprocess(inputSubmission, vreq);
+ //First name and last name would also have a language selected so make sure those literals are also
+ //correctly typed
+ //Middle name is optional
+ if(inputSubmission.hasLiteralValue("firstName") && inputSubmission.hasLiteralValue("lastName") && inputSubmission.hasLiteralValue("newLabelLanguage")) {
+ Map> literalsFromForm = inputSubmission.getLiteralsFromForm();
+ List newLabelLanguages = literalsFromForm.get("newLabelLanguage");
+ List firstNames = literalsFromForm.get("firstName");
+ List lastNames = literalsFromForm.get("lastName");
+ List middleNames = new ArrayList();
+ if(inputSubmission.hasLiteralValue("middleName")) {
+ middleNames = literalsFromForm.get("middleName");
+ }
+
+
+ //Expecting only one language
+ if(firstNames.size() > 0 && lastNames.size() > 0 && newLabelLanguages.size() > 0) {
+ Literal newLabelLanguage = newLabelLanguages.get(0);
+ Literal firstNameLiteral = firstNames.get(0);
+ Literal lastNameLiteral = lastNames.get(0);
+
+ //Get the string
+ String lang = this.getLanguage(newLabelLanguage.getString());
+ String firstNameValue = firstNameLiteral.getString();
+ String lastNameValue = lastNameLiteral.getString();
+
+ //Now add the language category to the literal
+ Literal firstNameWithLanguage = inputSubmission.createLiteral(firstNameValue,
+ null,
+ lang);
+ Literal lastNameWithLanguage = inputSubmission.createLiteral(lastNameValue,
+ null,
+ lang);
+
+ firstNames = new ArrayList();
+ lastNames = new ArrayList();
+ firstNames.add(firstNameWithLanguage);
+ lastNames.add(lastNameWithLanguage);
+ //replace the label with one with language, again assuming only one label being returned
+ literalsFromForm.put("firstName", firstNames);
+ literalsFromForm.put("lastName", lastNames);
+
+ //Middle name handling
+ if(middleNames.size() > 0) {
+ Literal middleNameLiteral = middleNames.get(0);
+ String middleNameValue = middleNameLiteral.getString();
+ Literal middleNameWithLanguage = inputSubmission.createLiteral(middleNameValue,
+ null,
+ lang);
+ middleNames = new ArrayList();
+ middleNames.add(middleNameWithLanguage);
+ literalsFromForm.put("middleName", middleNames);
+ }
+
+ //Set literals
+ inputSubmission.setLiteralsFromForm(literalsFromForm);
+ }
+ }
+
+ }
+
+
+}
From 9870934fa28fcbf52682b800552b7445c9fc13db Mon Sep 17 00:00:00 2001
From: brianjlowe
Date: Thu, 26 Sep 2013 14:27:25 -0400
Subject: [PATCH 4/7] cleaning up some ontology files
---
rdf/tbox/filegraph/classes-additional.owl | 3 -
rdf/tbox/filegraph/object-properties3.owl | 2291 +--------------------
rdf/tbox/filegraph/other.owl | 10 -
rdf/tbox/filegraph/publication.owl | 6 -
4 files changed, 1 insertion(+), 2309 deletions(-)
diff --git a/rdf/tbox/filegraph/classes-additional.owl b/rdf/tbox/filegraph/classes-additional.owl
index 4ad99647..a3830b85 100644
--- a/rdf/tbox/filegraph/classes-additional.owl
+++ b/rdf/tbox/filegraph/classes-additional.owl
@@ -539,7 +539,6 @@
Bibliographic Information Source
- A source of information about bibliographic citations, such as Google Scholar, Web of Science or Scopus.
@@ -792,7 +791,6 @@
Educational Process
-
@@ -1056,7 +1054,6 @@
Software
-
diff --git a/rdf/tbox/filegraph/object-properties3.owl b/rdf/tbox/filegraph/object-properties3.owl
index 9f87aa0c..700f8794 100644
--- a/rdf/tbox/filegraph/object-properties3.owl
+++ b/rdf/tbox/filegraph/object-properties3.owl
@@ -199,7 +199,6 @@
http://purl.org/ontology/bibo/Relates a document to an event; for example, a paper to a conference.unstable
-
@@ -282,7 +281,6 @@
has global count sourceA property linking the property c40:GlobalCitationCount to the bibliographic information source providing the global citation count information for a particular publication on a particular date.
-
@@ -316,7 +314,6 @@
degree candidacy
-
@@ -391,7 +388,7 @@
features
-
+
@@ -411,7 +408,6 @@
governing authority for
-
@@ -570,7 +566,6 @@
award sponsored by
-
@@ -581,7 +576,6 @@
sponsors award or honor
-
@@ -595,7 +589,6 @@
supported bygeneral relationship of support
-
@@ -606,7 +599,6 @@
supported publicationsan information resource (typically a publication) supported by (typically via funding) an agreement (such as a grant)
-
@@ -619,7 +611,6 @@
supportsgeneral relationship of support
-
@@ -638,7 +629,6 @@
valid in
-
@@ -782,7 +772,6 @@
has global count dateThe date on which the global citation count of the cited entity was recorded from a named bibliographic information source.
-
@@ -794,7 +783,6 @@
has global count valueAn integer defining the value of the global citation count of a cited entity recorded from a named bibliographic information source on a particular date.
-
@@ -805,7 +793,6 @@
preferredNamespaceUri
-
@@ -832,7 +819,6 @@
department or school name within institutionNot intended to be an institution name.
-
@@ -851,7 +837,6 @@
entry term
-
@@ -879,7 +864,6 @@
hide from display
-
@@ -891,7 +875,6 @@
HR job titleDefinition http://en.wikipedia.org/wiki/Job_title#Job_title.administrative secretary
-
@@ -903,7 +886,6 @@
is this person a corresponding author?True; False
-
@@ -933,7 +915,6 @@
preferred display order
-
@@ -959,7 +940,6 @@
term label
-
@@ -968,2278 +948,9 @@
term type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- research opportunity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Event
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Academic Article
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Article
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Audio Document
-
-
-
-
-
-
-
-
-
-
-
-
-
- Audio-Visual Document
-
-
-
-
-
-
-
-
-
-
-
-
-
- Book
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Book Section
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Collected Document
-
-
-
-
-
-
-
-
-
-
-
-
-
- Collection
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Conference
-
-
-
-
-
-
-
-
-
-
-
-
-
- document (IAO)
- Document
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Document Part
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Document Status
-
-
-
-
-
-
-
- Edited Book
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Image
-
-
-
-
-
-
-
-
- Journal
-
-
-
-
-
-
-
-
-
-
-
-
-
- Patent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Periodical
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Proceedings
-
-
-
-
-
-
-
- Report
-
-
-
-
-
-
-
-
-
-
-
-
-
- Series
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Thesis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Thesis Degree
-
-
-
-
-
-
-
- Website
-
-
-
-
-
-
-
-
-
-
-
-
-
- Bibliographic Information Source
-
- A source of information about bibliographic citations, such as Google Scholar, Web of Science or Scopus.
-
-
-
-
-
-
-
- Global Citation Count
- The number of times a work has been cited globally, as determined from a particular bibliographic information source on a particular date.
-
-
-
-
-
-
-
- Clinical Guideline
-
-
- A recommendation on the appropriate treatment and care of people with a specific disease or condition, based on the best available evidence, designed to help healthcare professionals in their work.
- A recommendation on the appropriate treatment and care of people with a specific disease or condition, based on the best available evidence, designed to help healthcare professionals in their work.
-
-
-
-
-
-
-
- Comment
-
-
- A verbal or written remark concerning some entity. In written form, a comment is often appended to that entity and termed an annotation. Within computer programs or ontologies, comments are added to enhance human understanding, and are usually prefaced by
- A verbal or written remark concerning some entity. In written form, a comment is often appended to that entity and termed an annotation. Within computer programs or ontologies, comments are added to enhance human understanding, and are usually prefaced by a special syntactic symbol that ensures they are ignored during execution of the program.
-
-has super-classes
-
-
-
-
-
-
-
- Erratum
-
-
- A formal correction to an error introduced by the publisher into a previously published document.
- A formal correction to an error introduced by the publisher into a previously published document.
-
-
-
-
-
-
-
- Academic Degree
-
-
-
- 1
-
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Academic Department
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Address
-
-
-
-
-
-
-
- 200 University Avenue West, Waterloo, Ontario, Canada N2L 3G1
- A specification of a location. To classify US specific addresses, use core:US Postal Code.
- Address has properties for department name, street, city, state or province, postal code, and country. For US specific address, classify using core:US Postal Code. core:Address will display all addresses.
-
-
-
-
-
-
-
- Advising Relationship
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Agreement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- A negotiated arrangement between two or more parties regarding a course of action
-
-
-
-
-
-
-
- Attendee Role
-
-
-
-
-
-
-
-
- Authorship
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Award or Honor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Award or Honor Receipt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Blog
-
-
-
-
-
-
-
- Blog Posting
-
-
-
-
-
-
-
-
-
-
-
-
-
- Building
-
-
-
-
-
-
-
- Catalog
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Center
-
-
-
-
-
-
-
-
-
-
-
-
-
- Clinical Role
-
-
-
-
-
-
-
-
- Co-Principal Investigator Role
-
-
-
-
-
-
-
- College
-
-
-
-
-
-
-
-
-
-
-
-
-
- Committee
-
-
-
-
-
-
-
-
-
-
-
-
-
- Conference Paper
-
-
-
-
-
-
-
-
-
-
-
-
-
- Consortium
-
-
-
- 2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Contract
-
-
-
-
-
-
-
-
- County
-
-
-
-
-
-
-
-
-
-
-
-
-
- Course
-
-
-
-
-
-
-
-
-
-
-
-
-
- Credential
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Database
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dataset
-
-
-
-
-
-
-
-
- Date/Time Interval
-
-
-
-
-
-
-
- Date/Time Value
-
-
-
-
-
-
-
- Date/Time Value Precision
-
-
-
-
-
-
-
- Department
-
-
-
-
-
-
-
-
-
-
-
-
-
- Division
-
-
-
-
-
-
-
-
-
-
-
-
-
- Editor Role
-
-
-
-
-
-
-
-
- Educational Training
-
-
-
-
-
-
-
-
-
-
-
-
-
- Currently any abstract name is given to individuals of this class. This could change in the future.
- Represents educational training that has been received.
- This connects person to their academic degree through this educational training, but can also be used when the training does not result in a degree.
-
-
-
-
-
-
-
- Faculty Member Emeritus
-
-
- A retired faculty member who has retained their rank, title and privileges.
-
-
-
-
-
-
-
- Librarian Emeritus
-
-
- A retired librarian who has retained their rank, title and privileges.
-
-
-
-
-
-
-
- Professor Emeritus
-
-
-
- A retired professor who has retained their rank, title and privileges.
-
-
-
-
-
-
-
- Equipment
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Event Series
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Facility
-
-
-
-
-
-
-
-
- Faculty Administrative Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Faculty Member
-
-
- A person with at least one academic appointment to a specific faculty of a university or institution of higher learning.
- Definition from here: http://research.carleton.ca/htr/defs.php.
-
-
-
-
-
-
-
- Faculty Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Funding Organization
-
-
-
-
-
-
-
-
-
-
-
-
-
- Geographic Location
-
-
-
-
-
-
-
- Geographic Region
-
-
-
-
-
-
-
- Grant
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Information Resource
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- The most general classification of an information resource
-
-
-
-
-
-
-
- Internship
-
-
-
-
-
-
-
-
- Investigator Role
-
-
-
-
-
-
-
- Issued Credential
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Laboratory
-
-
-
-
-
-
-
-
-
-
-
-
-
- Leader Role
-
-
-
-
-
-
-
-
- Librarian
-
-
- A person working in a position of librarian or information professional, or academic or technical expert in support of providing information services or materials.
-
-
-
-
-
-
-
- Librarian Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Library
-
-
-
-
-
-
-
-
-
-
-
-
-
- Medical Residency
-
-
-
-
-
-
-
-
- Member Role
-
-
-
-
-
-
-
-
- Non-Academic
-
-
- A person holding a position that is not considered to be an academic appointment.
-
-
-
-
-
-
-
- Non-Academic Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Non-Faculty Academic
-
-
- A person not considered a faculty member but holding an academic appointment.
-
-
-
-
-
-
-
- Non-Faculty Academic Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Organizer Role
-
-
-
-
-
-
-
-
- Outreach Provider Role
-
-
-
-
-
-
-
-
- Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Postdoc
-
-
- A Person holding an academic employment appointment focused on research rather than teaching; temporary (or for some defined term)
-
-
-
-
-
-
-
- Postdoctoral Training
-
-
-
-
-
-
-
-
- Presenter Role
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Principal Investigator Role
-
-
-
-
-
-
-
- Project
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Publisher
-
-
-
-
-
-
-
-
-
-
-
-
-
- Researcher Role
-
-
-
-
-
-
-
-
- Review
-
-
-
-
-
-
-
- Reviewer Role
-
-
-
-
-
-
-
-
- Role
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- A person's, group's or organization's role in an endeavor
- Only use if no specific subclasses of core:Role describe the role.
- Only use this broad role class if no subclasses of role describe the item being classified.
-
-
-
-
-
-
-
- Room
-
-
-
-
-
-
-
- Service
-
-
-
-
-
-
-
-
-
-
-
-
-
- A regularly offered service in support of an academic, research, or administrative function (not personal or professional service by an individual)
- UITS service
- UITS service is the information technology services provided by Indiana University. SC.
-
-
-
-
-
-
-
- Service Provider Role
-
-
- An role of an individual within his or her profession or institution; use outreach provider role for community service or other activities outside the profession.
- Member of the International Conference on Complex Systems Organizing Committee
-
-
-
-
-
-
-
- Software
-
-
-
-
-
-
-
-
- Computer program and its related documentation; directs the operation of a computer
-
-
-
-
-
-
-
- State Or Province
-
-
-
-
-
-
-
- Teacher Role
-
-
-
-
-
-
-
-
- Team
-
-
-
-
-
-
-
-
-
-
-
-
-
- URLLink
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- US Postal Address
-
-
-
-
-
- 1
-
-
-
-
-
- 1
-
-
-
-
-
- 1
-
-
- 1320 East 10th Street, Wells Library 021 Bloomington, IN 47405
- Formal address in US postal address system.
- US postal address follow the format street, apt or office number (optional), city, state, and zipcode.
-
-
-
-
-
-
-
- University
-
-
-
-
-
-
-
-
-
-
-
-
-
- Working Paper
-
-
-
-
-
-
-
-
-
-
-
-
-
- Person As Listed
-
-
- For data ingest from authoritative sources to record the actual way a person was listed, as potentially valuable information for provenance and person disambiguation.
- For data ingest from authoritative sources to record the actual way a person was listed, as potentially valuable information for provenance and person disambiguation. Represents one person's information from one source at one particular time.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Concept
- Concept
- An idea or notion; a unit of thought.
-
-
-
-
-
-
-
- Agent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Group
-
-
-
-
-
-
-
-
-
-
-
-
-
- Organization
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Person
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- yearPrecision
-
-
- relation
- This term is intended to be used with non-literal values as defined in the DCMI Abstract Model (http://dublincore.org/documents/abstract-model/). As of December 2007, the DCMI Usage Board is seeking a way to express this intention with a formal range declaration.
-
-
- yearMonthDayPrecision
-
-
- Document to be published
-
-
- yearMonthDayTimePrecision
-
-
- Peer review is the process by which articles are chosen to be included in a refereed journal. An editorial board consisting of experts in the same field as the author review the article and decide if it is authoritative enough for publication.
-
-
- Accepted for publication after peer reviewing
-
-
- Published document
-
-
- yearMonthPrecision
-
-
-
-
-
-
diff --git a/rdf/tbox/filegraph/other.owl b/rdf/tbox/filegraph/other.owl
index ee5c82e8..576c1b38 100644
--- a/rdf/tbox/filegraph/other.owl
+++ b/rdf/tbox/filegraph/other.owl
@@ -73,16 +73,6 @@
-
-
-
-
-
- urllink
- The full URL.
- Uniform Resource Locator (URL) specifies where an identified resource is available and the mechanism for retrieving it.
- http://info.slis.indiana.edu/~katy/
-
diff --git a/rdf/tbox/filegraph/publication.owl b/rdf/tbox/filegraph/publication.owl
index e73e84a3..df440caf 100644
--- a/rdf/tbox/filegraph/publication.owl
+++ b/rdf/tbox/filegraph/publication.owl
@@ -1142,12 +1142,6 @@ Contents
-
-
-
-
-
-
From d71c995e0e7008ab4118808c168cc24525bd87e2 Mon Sep 17 00:00:00 2001
From: brianjlowe
Date: Fri, 27 Sep 2013 13:44:21 -0400
Subject: [PATCH 5/7] various migration fixes
---
.../WEB-INF/ontologies/update/diff.tab.txt | 2 +-
.../additions/Editorship.sparql | 1 +
.../additions/LeaderRole.sparql | 4 +++-
.../additions/MemberRole.sparql | 4 +++-
.../additions/collabRelationship.sparql | 17 +++++++++++++++++
.../sparqlConstructs/additions/grant-pre.sparql | 11 +++++++++++
.../additions/grantAdmin.sparql | 4 +++-
.../deletions/grant-pre-del.sparql | 11 +++++++++++
8 files changed, 50 insertions(+), 4 deletions(-)
create mode 100644 productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/collabRelationship.sparql
create mode 100644 productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grant-pre.sparql
create mode 100644 productMods/WEB-INF/ontologies/update/sparqlConstructs/deletions/grant-pre-del.sparql
diff --git a/productMods/WEB-INF/ontologies/update/diff.tab.txt b/productMods/WEB-INF/ontologies/update/diff.tab.txt
index d946c21b..a35f9ae0 100644
--- a/productMods/WEB-INF/ontologies/update/diff.tab.txt
+++ b/productMods/WEB-INF/ontologies/update/diff.tab.txt
@@ -1 +1 @@
-http://purl.org/NET/c4dm/event.owl#agent Delete z
http://purl.org/NET/c4dm/event.owl#isAgentIn Delete z
http://purl.org/NET/c4dm/event.owl#produced_in http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://purl.org/NET/c4dm/event.owl#product http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://purl.org/dc/elements/1.1/isVersionOf Delete z
http://vivoweb.org/ontology/core#administeredBy Delete complex construct with grant administrator role
http://purl.org/dc/terms/contributor Delete z
http://purl.org/dc/terms/isReferencedBy Delete z
http://purl.org/dc/terms/isVersionOf Delete z
http://purl.org/dc/terms/publisher http://vivoweb.org/ontology/core#publisher Yes z
http://purl.org/ontology/bibo/editor Delete z
http://vivoweb.org/ontology/core#administers Delete complex construct with grant administrator role
http://vivoweb.org/ontology/core#advisee Delete CC - advising relationship plus add advisee role
http://vivoweb.org/ontology/core#adviseeIn Delete CC - advising relationship plus add advisee role
http://vivoweb.org/ontology/core#advisingContributionTo Delete construct
http://vivoweb.org/ontology/core#advisor Delete CC - advising relationship plus add advisor role
http://vivoweb.org/ontology/core#advisorIn Delete CC - advising relationship plus add advisor role
http://vivoweb.org/ontology/core#affiliatedOrganization Delete construct Relationship node?
http://vivoweb.org/ontology/core#associatedRole http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#associatedWithPosition http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#attendeeRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#authorInAuthorship http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#awardConferred http://vivoweb.org/ontology/core#assigns Yes z
http://vivoweb.org/ontology/core#awardConferredBy http://vivoweb.org/ontology/core#assignedBy Yes z
http://vivoweb.org/ontology/core#awardOrHonor http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#awardOrHonorFor http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#awardsGrant http://vivoweb.org/ontology/core#assigns Yes z
http://vivoweb.org/ontology/core#clinicalRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#co-PrincipalInvestigatorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#courseOfferedBy http://vivoweb.org/ontology/core#offeredBy Yes z
http://vivoweb.org/ontology/core#credentialOf http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#currentMemberOf Delete construct MemberRole
http://vivoweb.org/ontology/core#currentlyHeadOf Delete construct LeaderRole
http://vivoweb.org/ontology/core#currentlyHeadedBy Delete construct LeaderRole
http://vivoweb.org/ontology/core#degreeEarned http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://vivoweb.org/ontology/core#degreeOfferedBy http://vivoweb.org/ontology/core#offeredBy Yes z
http://vivoweb.org/ontology/core#degreeOutcomeOf http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://vivoweb.org/ontology/core#domesticGeographicFocus http://vivoweb.org/ontology/core#geographicFocus Yes z
http://vivoweb.org/ontology/core#domesticGeographicFocusOf http://vivoweb.org/ontology/core#geographicFocusOf Yes z
http://vivoweb.org/ontology/core#editor Delete CC editorship
http://vivoweb.org/ontology/core#editorOf Delete CC editorship
http://vivoweb.org/ontology/core#editorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#educationalTraining http://purl.obolibrary.org/obo/RO_0000056 Yes z
http://vivoweb.org/ontology/core#educationalTrainingOf http://purl.obolibrary.org/obo/RO_0000057 Yes z
http://vivoweb.org/ontology/core#equipmentInFacility http://purl.obolibrary.org/obo/RO_0001025 Yes """located in"""
http://vivoweb.org/ontology/core#eventWithin http://purl.obolibrary.org/obo/BFO_0000050 Yes """part of"""
http://vivoweb.org/ontology/core#geographicLocationOf http://purl.obolibrary.org/obo/RO_0001015 Yes """location of"""
http://vivoweb.org/ontology/core#geographicallyContains http://purl.obolibrary.org/obo/BFO_0000051 Yes """has part"""
http://vivoweb.org/ontology/core#geographicallyWithin http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#grantAwardedBy http://vivoweb.org/ontology/core#assignedBy Yes z
http://vivoweb.org/ontology/core#hasAttendeeRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasAttendeeRoleContext
http://vivoweb.org/ontology/core#hasClinicalRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasClinicalRoleContext
http://vivoweb.org/ontology/core#hasCo-PrincipalInvestigatorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasCo-PrincipalInvestigatorRoleContext
http://vivoweb.org/ontology/core#hasCollaborator http://vivoweb.org/ontology/core#relatedBy Yes CC construct Relationship
http://vivoweb.org/ontology/core#hasCredential http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#hasCurrentMember Delete construct MemberRole
http://vivoweb.org/ontology/core#hasEditorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasEditorRoleContext
http://vivoweb.org/ontology/core#hasGeographicLocation http://purl.obolibrary.org/obo/RO_0001025 Yes """located in"""
http://vivoweb.org/ontology/core#hasInvestigatorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasInvestigatorRoleContext
http://vivoweb.org/ontology/core#hasLeaderRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasLeaderRoleContext
http://vivoweb.org/ontology/core#hasMemberRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasMemberRoleContext
http://vivoweb.org/ontology/core#hasOrganizerRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasOrganizerRoleContext
http://vivoweb.org/ontology/core#hasOutreachProviderRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasOutreachProviderContext
http://vivoweb.org/ontology/core#hasPart http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#hasPresenterRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasPresenterRoleContext
http://vivoweb.org/ontology/core#hasPrincipalInvestigatorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasPrincipalInvestigatorRoleContext
http://vivoweb.org/ontology/core#hasResearcherRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasResearcherRoleContext
http://vivoweb.org/ontology/core#hasReviewerRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasReviewerRoleContext
http://vivoweb.org/ontology/core#hasRole http://purl.obolibrary.org/obo/RO_0000053 Yes z
http://vivoweb.org/ontology/core#hasRoom http://purl.obolibrary.org/obo/BFO_0000051 Yes """has part"""
http://vivoweb.org/ontology/core#hasServiceProviderRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasServiceProviderRoleContext
http://vivoweb.org/ontology/core#hasSubGrant http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#hasSubOrganization http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#hasTeacherRole http://purl.obolibrary.org/obo/RO_0000053 Yes z
http://vivoweb.org/ontology/core#inEventSeries http://purl.obolibrary.org/obo/BFO_0000050 Yes """part of"""
http://vivoweb.org/ontology/core#includesEvent http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#informationProduct http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://vivoweb.org/ontology/core#informationProductOf http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://vivoweb.org/ontology/core#informationResourceInAuthorship http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#internationalGeographicFocus http://vivoweb.org/ontology/core#geographicFocus Yes z
http://vivoweb.org/ontology/core#internationalGeographicFocusOf http://vivoweb.org/ontology/core#geographicFocusOf Yes z
http://vivoweb.org/ontology/core#investigatorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes """inheres in"""
http://vivoweb.org/ontology/core#issuanceOfCredential http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#issuedCredential http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#leaderRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#linkedAuthor http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#linkedInformationResource http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#locationOfEquipment http://purl.obolibrary.org/obo/RO_0001015 Yes z
http://vivoweb.org/ontology/core#mailingAddress Delete VCard
http://vivoweb.org/ontology/core#mailingAddressFor Delete VCard
http://vivoweb.org/ontology/core#memberRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#offersCourse http://vivoweb.org/ontology/core#offers Yes z
http://vivoweb.org/ontology/core#offersDegree http://vivoweb.org/ontology/core#offers Yes z
http://vivoweb.org/ontology/core#organizationForPosition http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#organizationForTraining http://purl.obolibrary.org/obo/RO_0000056 Yes z
http://vivoweb.org/ontology/core#organizerRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#outcome http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://vivoweb.org/ontology/core#outcomeOf http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://vivoweb.org/ontology/core#outreachProviderRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#partOf http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#personInPosition http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#positionForPerson http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#positionInOrganization http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#presenterRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#principalInvestigatorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#providesService http://vivoweb.org/ontology/core#offers Yes z
http://vivoweb.org/ontology/core#realizedRole http://purl.obolibrary.org/obo/BFO_0000055 Yes """realizes"""
http://vivoweb.org/ontology/core#receipt http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#receiptOf http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#relatedRole http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#researcherRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#reviewerRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#roleIn http://purl.obolibrary.org/obo/BFO_0000054 Yes """realized in"" (or delete, since there should be subs?)"
http://vivoweb.org/ontology/core#roleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#roleRealizedIn http://purl.obolibrary.org/obo/BFO_0000054 Yes z
http://vivoweb.org/ontology/core#roomWithinBuilding http://purl.obolibrary.org/obo/RO_0001025 Yes z
http://vivoweb.org/ontology/core#seriesForEvent http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#serviceProvidedBy http://vivoweb.org/ontology/core#offeredBy Yes z
http://vivoweb.org/ontology/core#serviceProviderRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#subGrantOf http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#subOrganizationWithin http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#teacherRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#trainingAtOrganization http://purl.obolibrary.org/obo/RO_0000057 Yes z
http://vivoweb.org/ontology/core#authorRank http://vivoweb.org/ontology/core#rank Yes z
http://vivoweb.org/ontology/core#preferredTitle Delete z
http://vivoweb.org/ontology/core#EducationalTraining http://vivoweb.org/ontology/core#EducationalProcess Yes z
http://vivoweb.org/ontology/core#ServiceProviderRole http://purl.obolibrary.org/obo/ERO_0000012 Yes z
http://vivoweb.org/ontology/core#URLLink http://www.w3.org/2006/vcard/ns#URL Yes z
\ No newline at end of file
+http://purl.org/NET/c4dm/event.owl#agent Delete z
http://purl.org/NET/c4dm/event.owl#isAgentIn Delete z
http://purl.org/NET/c4dm/event.owl#produced_in http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://purl.org/NET/c4dm/event.owl#product http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://purl.org/dc/elements/1.1/isVersionOf Delete z
http://vivoweb.org/ontology/core#administeredBy Delete complex construct with grant administrator role
http://purl.org/dc/terms/contributor Delete z
http://purl.org/dc/terms/isReferencedBy Delete z
http://purl.org/dc/terms/isVersionOf Delete z
http://purl.org/dc/terms/publisher http://vivoweb.org/ontology/core#publisher Yes z
http://purl.org/ontology/bibo/editor Delete z
http://vivoweb.org/ontology/core#administers Delete complex construct with grant administrator role
http://vivoweb.org/ontology/core#advisee Delete CC - advising relationship plus add advisee role
http://vivoweb.org/ontology/core#adviseeIn Delete CC - advising relationship plus add advisee role
http://vivoweb.org/ontology/core#advisingContributionTo Delete construct
http://vivoweb.org/ontology/core#advisor Delete CC - advising relationship plus add advisor role
http://vivoweb.org/ontology/core#advisorIn Delete CC - advising relationship plus add advisor role
http://vivoweb.org/ontology/core#affiliatedOrganization Delete construct Relationship node?
http://vivoweb.org/ontology/core#associatedRole http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#associatedWithPosition http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#attendeeRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#authorInAuthorship http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#awardConferred http://vivoweb.org/ontology/core#assigns Yes z
http://vivoweb.org/ontology/core#awardConferredBy http://vivoweb.org/ontology/core#assignedBy Yes z
http://vivoweb.org/ontology/core#awardOrHonor http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#awardOrHonorFor http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#awardsGrant http://vivoweb.org/ontology/core#assigns Yes z
http://vivoweb.org/ontology/core#clinicalRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#co-PrincipalInvestigatorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#courseOfferedBy http://vivoweb.org/ontology/core#offeredBy Yes z
http://vivoweb.org/ontology/core#credentialOf http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#currentMemberOf Delete construct MemberRole
http://vivoweb.org/ontology/core#currentlyHeadOf Delete construct LeaderRole
http://vivoweb.org/ontology/core#currentlyHeadedBy Delete construct LeaderRole
http://vivoweb.org/ontology/core#degreeEarned http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://vivoweb.org/ontology/core#degreeOfferedBy http://vivoweb.org/ontology/core#offeredBy Yes z
http://vivoweb.org/ontology/core#degreeOutcomeOf http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://vivoweb.org/ontology/core#domesticGeographicFocus http://vivoweb.org/ontology/core#geographicFocus Yes z
http://vivoweb.org/ontology/core#domesticGeographicFocusOf http://vivoweb.org/ontology/core#geographicFocusOf Yes z
http://vivoweb.org/ontology/core#editor Delete CC editorship
http://vivoweb.org/ontology/core#editorOf Delete CC editorship
http://vivoweb.org/ontology/core#editorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#educationalTraining http://purl.obolibrary.org/obo/RO_0000056 Yes z
http://vivoweb.org/ontology/core#educationalTrainingOf http://purl.obolibrary.org/obo/RO_0000057 Yes z
http://vivoweb.org/ontology/core#equipmentInFacility http://purl.obolibrary.org/obo/RO_0001025 Yes """located in"""
http://vivoweb.org/ontology/core#eventWithin http://purl.obolibrary.org/obo/BFO_0000050 Yes """part of"""
http://vivoweb.org/ontology/core#geographicLocationOf http://purl.obolibrary.org/obo/RO_0001015 Yes """location of"""
http://vivoweb.org/ontology/core#geographicallyContains http://purl.obolibrary.org/obo/BFO_0000051 Yes """has part"""
http://vivoweb.org/ontology/core#geographicallyWithin http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#grantAwardedBy http://vivoweb.org/ontology/core#assignedBy Yes z
http://vivoweb.org/ontology/core#hasAttendeeRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasAttendeeRoleContext
http://vivoweb.org/ontology/core#hasClinicalRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasClinicalRoleContext
http://vivoweb.org/ontology/core#hasCo-PrincipalInvestigatorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasCo-PrincipalInvestigatorRoleContext
http://vivoweb.org/ontology/core#hasCollaborator Delete CC construct Relationship
http://vivoweb.org/ontology/core#hasCredential http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#hasCurrentMember Delete construct MemberRole
http://vivoweb.org/ontology/core#hasEditorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasEditorRoleContext
http://vivoweb.org/ontology/core#hasGeographicLocation http://purl.obolibrary.org/obo/RO_0001025 Yes """located in"""
http://vivoweb.org/ontology/core#hasInvestigatorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasInvestigatorRoleContext
http://vivoweb.org/ontology/core#hasLeaderRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasLeaderRoleContext
http://vivoweb.org/ontology/core#hasMemberRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasMemberRoleContext
http://vivoweb.org/ontology/core#hasOrganizerRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasOrganizerRoleContext
http://vivoweb.org/ontology/core#hasOutreachProviderRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasOutreachProviderContext
http://vivoweb.org/ontology/core#hasPart http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#hasPresenterRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasPresenterRoleContext
http://vivoweb.org/ontology/core#hasPrincipalInvestigatorRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasPrincipalInvestigatorRoleContext
http://vivoweb.org/ontology/core#hasResearcherRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasResearcherRoleContext
http://vivoweb.org/ontology/core#hasReviewerRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasReviewerRoleContext
http://vivoweb.org/ontology/core#hasRole http://purl.obolibrary.org/obo/RO_0000053 Yes z
http://vivoweb.org/ontology/core#hasRoom http://purl.obolibrary.org/obo/BFO_0000051 Yes """has part"""
http://vivoweb.org/ontology/core#hasServiceProviderRole http://purl.obolibrary.org/obo/RO_0000053 Yes cc:hasServiceProviderRoleContext
http://vivoweb.org/ontology/core#hasSubGrant http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#hasSubOrganization http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#hasTeacherRole http://purl.obolibrary.org/obo/RO_0000053 Yes z
http://vivoweb.org/ontology/core#inEventSeries http://purl.obolibrary.org/obo/BFO_0000050 Yes """part of"""
http://vivoweb.org/ontology/core#includesEvent http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#informationProduct http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://vivoweb.org/ontology/core#informationProductOf http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://vivoweb.org/ontology/core#informationResourceInAuthorship http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#internationalGeographicFocus http://vivoweb.org/ontology/core#geographicFocus Yes z
http://vivoweb.org/ontology/core#internationalGeographicFocusOf http://vivoweb.org/ontology/core#geographicFocusOf Yes z
http://vivoweb.org/ontology/core#investigatorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes """inheres in"""
http://vivoweb.org/ontology/core#issuanceOfCredential http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#issuedCredential http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#leaderRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#linkedAuthor http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#linkedInformationResource http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#locationOfEquipment http://purl.obolibrary.org/obo/RO_0001015 Yes z
http://vivoweb.org/ontology/core#mailingAddress Delete VCard
http://vivoweb.org/ontology/core#mailingAddressFor Delete VCard
http://vivoweb.org/ontology/core#memberRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#offersCourse http://vivoweb.org/ontology/core#offers Yes z
http://vivoweb.org/ontology/core#offersDegree http://vivoweb.org/ontology/core#offers Yes z
http://vivoweb.org/ontology/core#organizationForPosition http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#organizationForTraining http://purl.obolibrary.org/obo/RO_0000056 Yes z
http://vivoweb.org/ontology/core#organizerRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#outcome http://purl.obolibrary.org/obo/RO_0002234 Yes z
http://vivoweb.org/ontology/core#outcomeOf http://purl.obolibrary.org/obo/RO_0002353 Yes z
http://vivoweb.org/ontology/core#outreachProviderRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#partOf http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#personInPosition http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#positionForPerson http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#positionInOrganization http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#presenterRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#principalInvestigatorRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#providesService http://vivoweb.org/ontology/core#offers Yes z
http://vivoweb.org/ontology/core#realizedRole http://purl.obolibrary.org/obo/BFO_0000055 Yes """realizes"""
http://vivoweb.org/ontology/core#receipt http://vivoweb.org/ontology/core#relatedBy Yes z
http://vivoweb.org/ontology/core#receiptOf http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#relatedRole http://vivoweb.org/ontology/core#relates Yes z
http://vivoweb.org/ontology/core#researcherRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#reviewerRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#roleIn http://purl.obolibrary.org/obo/BFO_0000054 Yes """realized in"" (or delete, since there should be subs?)"
http://vivoweb.org/ontology/core#roleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#roleRealizedIn http://purl.obolibrary.org/obo/BFO_0000054 Yes z
http://vivoweb.org/ontology/core#roomWithinBuilding http://purl.obolibrary.org/obo/RO_0001025 Yes z
http://vivoweb.org/ontology/core#seriesForEvent http://purl.obolibrary.org/obo/BFO_0000051 Yes z
http://vivoweb.org/ontology/core#serviceProvidedBy http://vivoweb.org/ontology/core#offeredBy Yes z
http://vivoweb.org/ontology/core#serviceProviderRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#subGrantOf http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#subOrganizationWithin http://purl.obolibrary.org/obo/BFO_0000050 Yes z
http://vivoweb.org/ontology/core#teacherRoleOf http://purl.obolibrary.org/obo/RO_0000052 Yes z
http://vivoweb.org/ontology/core#trainingAtOrganization http://purl.obolibrary.org/obo/RO_0000057 Yes z
http://vivoweb.org/ontology/core#authorRank http://vivoweb.org/ontology/core#rank Yes z
http://vivoweb.org/ontology/core#preferredTitle Delete z
http://vivoweb.org/ontology/core#EducationalTraining http://vivoweb.org/ontology/core#EducationalProcess Yes z
http://vivoweb.org/ontology/core#ServiceProviderRole http://purl.obolibrary.org/obo/ERO_0000012 Yes z
http://vivoweb.org/ontology/core#URLLink http://www.w3.org/2006/vcard/ns#URL Yes z
\ No newline at end of file
diff --git a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/Editorship.sparql b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/Editorship.sparql
index 0720c346..8f455b44 100644
--- a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/Editorship.sparql
+++ b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/Editorship.sparql
@@ -13,5 +13,6 @@ CONSTRUCT {
?person vivo:editorOf ?document
} UNION {
?document vivo:editor ?person
+ FILTER NOT EXISTS { ?person vivo:editorOf ?document }
}
}
diff --git a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/LeaderRole.sparql b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/LeaderRole.sparql
index f9582fae..c32796b1 100644
--- a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/LeaderRole.sparql
+++ b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/LeaderRole.sparql
@@ -11,5 +11,7 @@ CONSTRUCT {
} WHERE {
{ ?person vivo:currentlyHeadOf ?org }
UNION
- { ?org vivo:currentlyHeadedBy ?person }
+ { ?org vivo:currentlyHeadedBy ?person
+ FILTER NOT EXISTS { ?person vivo:currentlyHeadOf ?org }
+ }
}
diff --git a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/MemberRole.sparql b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/MemberRole.sparql
index c9582a84..67e06173 100644
--- a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/MemberRole.sparql
+++ b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/MemberRole.sparql
@@ -11,5 +11,7 @@ CONSTRUCT {
} WHERE {
{ ?person vivo:currentMemberOf ?org }
UNION
- { ?org vivo:hasCurrentMember ?person }
+ { ?org vivo:hasCurrentMember ?person
+ FILTER NOT EXISTS { ?person vivo:currentMemberOf ?org }
+ }
}
diff --git a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/collabRelationship.sparql b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/collabRelationship.sparql
new file mode 100644
index 00000000..0aded656
--- /dev/null
+++ b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/collabRelationship.sparql
@@ -0,0 +1,17 @@
+PREFIX vivo:
+PREFIX owl:
+PREFIX foaf:
+
+CONSTRUCT {
+ ?person1 vivo:relatedBy _:relationship .
+ ?person2 vivo:relatedBy _:relationship .
+ _:relationship vivo:relates ?person1 .
+ _:relationship vivo:relates ?person2 .
+} WHERE {
+ { ?person1 vivo:hasCollaborator ?person2
+ FILTER NOT EXISTS {
+ ?person1 vivo:relatedBy ?relationship .
+ ?relationship vivo:relates ?person2
+ }
+ }
+}
diff --git a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grant-pre.sparql b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grant-pre.sparql
new file mode 100644
index 00000000..426b75a1
--- /dev/null
+++ b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grant-pre.sparql
@@ -0,0 +1,11 @@
+PREFIX vivo:
+PREFIX owl:
+PREFIX foaf:
+
+CONSTRUCT {
+ ?role vivo:relatedBy ?grant .
+ ?grant vivo:relates ?role
+} WHERE {
+ ?role vivo:roleContributesTo ?grant .
+ ?grant a vivo:Grant .
+}
diff --git a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grantAdmin.sparql b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grantAdmin.sparql
index 123edd1c..10607fc9 100644
--- a/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grantAdmin.sparql
+++ b/productMods/WEB-INF/ontologies/update/sparqlConstructs/additions/grantAdmin.sparql
@@ -13,5 +13,7 @@ CONSTRUCT {
} WHERE {
{ ?agent vivo:administers ?grant }
UNION
- { ?grant vivo:administeredBy ?agent }
+ { ?grant vivo:administeredBy ?agent
+ FILTER NOT EXISTS { ?agent vivo:administers ?grant }
+ }
}
diff --git a/productMods/WEB-INF/ontologies/update/sparqlConstructs/deletions/grant-pre-del.sparql b/productMods/WEB-INF/ontologies/update/sparqlConstructs/deletions/grant-pre-del.sparql
new file mode 100644
index 00000000..a0276127
--- /dev/null
+++ b/productMods/WEB-INF/ontologies/update/sparqlConstructs/deletions/grant-pre-del.sparql
@@ -0,0 +1,11 @@
+PREFIX vivo:
+PREFIX owl:
+PREFIX foaf:
+
+CONSTRUCT {
+ ?role vivo:roleContributesTo ?grant .
+ ?grant vivo:contributingRole ?role .
+} WHERE {
+ ?role vivo:roleContributesTo ?grant .
+ ?grant a vivo:Grant .
+}
From 83b3f755d52fc10507cf2352d26b7e8549d41ebc Mon Sep 17 00:00:00 2001
From: tworrall
Date: Mon, 30 Sep 2013 09:30:34 -0400
Subject: [PATCH 6/7] VIVO-285: visualization updates for ISF
---
.../config/listViewConfig-advisorIn.xml | 29 +-
.../individual-visualizationFoafPerson.ftl | 12 +-
.../entityComparisonErrorCommonBody.ftl | 2 +-
.../freemarker/visualization/tools.ftl | 2 +-
rdf/display/everytime/PropertyConfig.n3 | 19 +-
...ManagePeopleForOrganizationController.java | 10 +-
.../PersonHasAwardOrHonorGenerator.java | 16 +-
.../PersonHasEducationalTraining.java | 4 +
.../coauthorship/CoAuthorshipQueryRunner.java | 887 ++++----
.../CoPIGrantCountConstructQueryRunner.java | 94 +-
.../CoPIGrantCountQueryRunner.java | 144 +-
...ciatedPeopleModelWithTypesConstructor.java | 5 +-
...OrganizationModelWithTypesConstructor.java | 6 +-
...tsForSubOrganizationsModelConstructor.java | 393 ++--
...nsForSubOrganizationsModelConstructor.java | 15 +-
.../PeopleToGrantsModelConstructor.java | 348 +--
.../PeopleToPublicationsModelConstructor.java | 7 +-
.../PersonToGrantsModelConstructor.java | 354 ++--
.../PersonToPublicationsModelConstructor.java | 6 +-
...SubOrganizationWithinModelConstructor.java | 6 +-
.../PersonPublicationCountQueryRunner.java | 325 +--
.../OrganizationUtilityFunctions.java | 6 +-
.../utilities/UtilitiesRequestHandler.java | 27 +-
.../visutils/AllPropertiesQueryRunner.java | 272 +--
.../visutils/GenericQueryRunner.java | 202 +-
.../visutils/GenericQueryRunnerOnModel.java | 200 +-
.../visutils/SelectOnModelUtilities.java | 1876 +++++++++--------
27 files changed, 2743 insertions(+), 2524 deletions(-)
diff --git a/productMods/config/listViewConfig-advisorIn.xml b/productMods/config/listViewConfig-advisorIn.xml
index 30f83e1e..8fb1498c 100644
--- a/productMods/config/listViewConfig-advisorIn.xml
+++ b/productMods/config/listViewConfig-advisorIn.xml
@@ -25,11 +25,14 @@
?dateTimeEnd
WHERE {
- ?subject ?property ?advisory
+ ?subject ?property ?advisory .
+ ?advisory core:relates ?advisor .
+ ?advisor <http://purl.obolibrary.org/obo/RO_0000053> ?advisorRole .
LET ( ?localName := afn:localname(?advisory) )
OPTIONAL { ?advisory rdfs:label ?advisoryLabel }
OPTIONAL { ?advisory core:relates ?advisee .
?advisee a foaf:Person .
+ ?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole
OPTIONAL { ?advisee rdfs:label ?adviseeLabel }
}
OPTIONAL { ?advisory core:relates ?degree .
@@ -74,7 +77,10 @@
?subject ?property ?advisory .
?advisory a core:AdvisingRelationship .
?advisory ?advisoryProperty ?advisoryValue .
- ?advisory rdfs:label ?advisoryLabel
+ ?advisory rdfs:label ?advisoryLabel .
+ ?advisory core:relates ?advisor .
+ ?advisor <http://purl.obolibrary.org/obo/RO_0000053> ?advisorRole .
+ ?advisorRole a core:AdvisorRole
} WHERE {
{
?subject ?property ?advisory .
@@ -88,10 +94,23 @@
?advisory a core:AdvisingRelationship .
?advisory ?advisoryProperty ?advisoryValue .
?advisory rdfs:label ?advisoryLabel
+ } UNION {
+ ?subject ?property ?advisory .
+ ?advisory a core:AdvisingRelationship .
+ ?advisory ?advisoryProperty ?advisoryValue .
+ ?advisory core:relates ?advisor .
+ ?advisor <http://purl.obolibrary.org/obo/RO_0000053> ?advisorRole .
+ ?advisorRole a core:AdvisorRole
}
}
+ OPTIONAL { ?advisory core:relates ?advisee .
+ ?advisee a foaf:Person .
+ ?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole
+
+
+
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX core: <http://vivoweb.org/ontology/core#>
@@ -104,6 +123,8 @@
?advisory core:relates ?advisee .
?advisee a foaf:Person .
?advisee rdfs:label ?adviseeLabel .
+ ?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole .
+ ?adviseeRole a core:AdviseeRole .
?advisory core:relates ?degree .
?degree a core:AcademicDegree .
?degree rdfs:label ?degreeLabel .
@@ -117,11 +138,15 @@
?advisory a core:AdvisingRelationship .
?advisory core:relates ?advisee .
?advisee a foaf:Person .
+ ?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole .
+ ?adviseeRole a core:AdviseeRole
} UNION {
?subject ?property ?advisory .
?advisory a core:AdvisingRelationship .
?advisory core:relates ?advisee .
?advisee a foaf:Person .
+ ?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole .
+ ?adviseeRole a core:AdviseeRole .
?advisee rdfs:label ?adviseeLabel
} UNION {
?subject ?property ?advisory .
diff --git a/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl b/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl
index 2a2b7a6a..aefa6c28 100644
--- a/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl
+++ b/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl
@@ -3,12 +3,14 @@
<#-- Template for sparkline visualization on individual profile page -->
<#-- Determine whether this person is an author -->
-<#assign isAuthor = p.hasStatements(propertyGroups, "${core}authorInAuthorship") />
+<#assign isAuthor = p.hasVisualizationStatements(propertyGroups, "${core}relatedBy", "${core}Authorship") />
<#-- Determine whether this person is involved in any grants -->
-<#assign isInvestigator = ( p.hasStatements(propertyGroups, "${core}hasInvestigatorRole") ||
- p.hasStatements(propertyGroups, "${core}hasPrincipalInvestigatorRole") ||
- p.hasStatements(propertyGroups, "${core}hasCo-PrincipalInvestigatorRole") ) >
+<#assign obo_RO53 = "http://purl.obolibrary.org/obo/RO_0000053">
+
+<#assign isInvestigator = ( p.hasVisualizationStatements(propertyGroups, "${obo_RO53}", "${core}InvestigatorRole") ||
+ p.hasVisualizationStatements(propertyGroups, "${obo_RO53}", "${core}PrincipalInvestigatorRole") ||
+ p.hasVisualizationStatements(propertyGroups, "${obo_RO53}", "${core}CoPrincipalInvestigatorRole") ) >
<#if (isAuthor || isInvestigator)>
@@ -70,4 +72,4 @@
#if>
-#if>
\ No newline at end of file
+#if>
diff --git a/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonErrorCommonBody.ftl b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonErrorCommonBody.ftl
index 707f6c7d..111df210 100644
--- a/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonErrorCommonBody.ftl
+++ b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonErrorCommonBody.ftl
@@ -16,7 +16,7 @@