@@ -245,8 +244,8 @@ issuing SPARQL queries that read data, and its URI for issuing SPARQL UPDATE com
These properties are used in compilation and deployment.
They will be incorporated into VIVO when it is compiled in
- Step 6 . If you want to change these properties at
- a later date, you will need to stop Tomcat, repeat Step 6 ,
+ Step 5 . If you want to change these properties at
+ a later date, you will need to stop Tomcat, repeat Step 5 ,
and restart Tomcat.
@@ -343,22 +342,62 @@ issuing SPARQL queries that read data, and its URI for issuing SPARQL UPDATE com
-
5. Specify runtime properties
+ 5. Compile and deploy
In Step 4 , you defined the location of the VIVO home directory,
by specifying vitro.home
in the build.properties
file.
Create that directory now.
- At the top level of the VIVO distribution directory, you will find a file called
- example.runtime.properties
. Copy this to the VIVO home directory you have created,
- renaming the copy to runtime.properties
.
- Edit the file to suit your installation, as described in the following table.
+ At the command line, from the top level of the VIVO distribution
+ directory, type:
+
ant all
+ to build VIVO and deploy to Tomcat's webapps directory.
+
+
+ The build script may run for as much as five minutes,
+ and creates more than 100 lines of output.
+ The process comprises several steps:
+
+ collecting the source files from the distribution directory,
+ compiling the Java source code,
+ compiling and running unit tests,
+ preparing the Solr search engine,
+ deploying VIVO and Solr to Tomcat.
+
+
+
+ The output of the build may include a variety of warning messages.
+ The Java compiler may warn of code that is outdated.
+ Unit tests may produce warning messages,
+ and some tests may be ignored if they do not produce consistent results.
+
+
+ BUILD SUCCESSFUL Total time: 1 minute 49 seconds
+
+
+ If the output ends with a success message, the build was successful.
+ Proceed to the next step.
+
+
+ BUILD FAILED Total time: 35 seconds
+
+
+ If the output ends with a failure message, the build has failed.
+ Find the cause of the failure, fix the problem, and run the script again.
+
+
+ 6. Specify runtime properties
+
+ The build process in Step 5 created a file called example.runtime.properties
+ in your VIVO home directory (vitro.home
in the build.properties
file).
+ Rename this file to runtime.properties
, and
+ edit the file to suit your installation, as described in the following table.
These properties are loaded when VIVO starts up. If you want to change these
properties at a later date, you will need to restart Tomcat for them to take
- effect. You will not need to repeat Step 6 .
+ effect. You will not need to repeat Step 5 .
Windows:
@@ -921,45 +960,6 @@ issuing SPARQL queries that read data, and its URI for issuing SPARQL UPDATE com
-
6. Compile and deploy
-
- At the command line, from the top level of the VIVO distribution
- directory, type:
-
ant all
- to build VIVO and deploy to Tomcat's webapps directory.
-
-
- The build script may run for as much as five minutes,
- and creates more than 100 lines of output.
- The process comprises several steps:
-
- collecting the source files from the distribution directory,
- compiling the Java source code,
- compiling and running unit tests,
- preparing the Solr search engine,
- deploying VIVO and Solr to Tomcat.
-
-
-
- The output of the build may include a variety of warning messages.
- The Java compiler may warn of code that is outdated.
- Unit tests may produce warning messages,
- and some tests may be ignored if they do not produce consistent results.
-
-
- BUILD SUCCESSFUL Total time: 1 minute 49 seconds
-
-
- If the output ends with a success message, the build was successful.
- Proceed to the next step.
-
-
- BUILD FAILED Total time: 35 seconds
-
-
- If the output ends with a failure message, the build has failed.
- Find the cause of the failure, fix the problem, and run the script again.
-
7. Configure Tomcat
Set JVM parameters
@@ -1049,8 +1049,8 @@ issuing SPARQL queries that read data, and its URI for issuing SPARQL UPDATE com
problem is detected the normal VIVO pages will redirect
to a startup status page describing the problem. You
can stop tomcat, attempt to fix the problem and
- proceeded from Step 6 . The
- startup status page may offer a continue link which
+ proceed from Step 5 . If the problem is not serious, the
+ startup status page may offer a continue
link which
will allow you to use VIVO in spite of the problems.
From ae80d6c63d4ed3ae68faa665fc4212f61bafa77a Mon Sep 17 00:00:00 2001
From: tworrall
Date: Thu, 24 Oct 2013 13:16:26 -0400
Subject: [PATCH 2/4] miscellaneous cleanup but includes a fix for VIVO-404
---
.../config/listViewConfig-adviseeIn.xml | 35 +++--
.../config/listViewConfig-advisorIn.xml | 16 +-
.../config/listViewConfig-researchAreaOf.xml | 82 +++++-----
.../propStatement-researchAreaOf.ftl | 13 +-
.../edit/forms/js/adviseeRelationshipUtils.js | 10 +-
.../forms/personHasAdviseeRelationship.ftl | 1 +
rdf/display/everytime/PropertyConfig.n3 | 2 +
...PersonHasAdviseeRelationshipGenerator.java | 142 +++++++++++-------
...PersonHasAdvisorRelationshipGenerator.java | 4 +-
9 files changed, 175 insertions(+), 130 deletions(-)
diff --git a/productMods/config/listViewConfig-adviseeIn.xml b/productMods/config/listViewConfig-adviseeIn.xml
index b7d6e261..72b07c2c 100644
--- a/productMods/config/listViewConfig-adviseeIn.xml
+++ b/productMods/config/listViewConfig-adviseeIn.xml
@@ -28,7 +28,6 @@
WHERE {
?subject ?property ?adviseeRole .
?adviseeRole core:relatedBy ?advisingRel .
- ?subject core:relatedBy ?advisingRel .
LET ( ?localName := afn:localname(?advisingRel) )
OPTIONAL { ?advisingRel rdfs:label ?advisingRelLabel }
OPTIONAL { ?advisingRel core:relates ?advisor .
@@ -37,7 +36,7 @@
}
OPTIONAL { ?advisingRel core:degreeCandidacy ?degree .
?degree rdfs:label ?degreeLabel .
- ?degree core:abbreviation ?degreeAbbr
+ OPTIONAL { ?degree core:abbreviation ?degreeAbbr }
}
OPTIONAL { ?advisingRel vitro:mostSpecificType ?subclass .
@@ -60,11 +59,17 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
CONSTRUCT {
- ?subclass rdfs:subClassOf core:AdvisingRelationship
+ ?advisingRel vitro:mostSpecificType ?subclass .
+ ?subclass rdfs:subClassOf core:AdvisingRelationship
} WHERE {
- ?subclass rdfs:subClassOf core:AdvisingRelationship
+ ?subject ?property ?adviseeRole .
+ ?adviseeRole core:relatedBy ?advisingRel .
+ ?advisingRel a core:AdvisingRelationship .
+ ?advisingRel vitro:mostSpecificType ?subclass .
+ ?subclass rdfs:subClassOf core:AdvisingRelationship
}
@@ -74,6 +79,7 @@
CONSTRUCT {
?subject ?property ?adviseeRole .
?adviseeRole core:relatedBy ?advisingRel .
+ ?advisingRel a core:AdvisingRelationship .
?advisingRel rdfs:label ?advisingRelLabel .
} WHERE {
{
@@ -86,7 +92,6 @@
?adviseeRole a core:AdviseeRole .
?adviseeRole core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
- ?advisingRel ?advisingRelProperty ?advisingRelValue .
?advisingRel rdfs:label ?advisingRelLabel
}
}
@@ -105,8 +110,8 @@
?advisingRel a core:AdvisingRelationship .
?advisingRel core:relates ?advisor .
?advisor a foaf:Person .
- ?advisor <http://purl.obolibrary.org/obo/RO_0000053> ?advisorRole .
?advisor rdfs:label ?advisorLabel .
+ ?advisor <http://purl.obolibrary.org/obo/RO_0000053> ?advisorRole .
?advisorRole a core:AdvisorRole .
?advisingRel core:degreeCandidacy ?degree .
?degree rdfs:label ?degreeLabel .
@@ -134,7 +139,13 @@
?advisingRel a core:AdvisingRelationship .
?advisingRel core:degreeCandidacy ?degree .
?degree rdfs:label ?degreeLabel .
- ?degree core:abbreviation ?degreeAbbr
+ } UNION {
+ ?subject ?property ?adviseeRole .
+ ?adviseeRole a core:AdviseeRole .
+ ?adviseeRole core:relatedBy ?advisingRel .
+ ?advisingRel a core:AdvisingRelationship .
+ ?advisingRel core:degreeCandidacy ?degree .
+ ?degree core:abbreviation ?degreeAbbr
}
}
@@ -143,18 +154,16 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT {
?subject ?property ?adviseeRole .
+ ?adviseeRole a core:AdviseeRole .
?adviseeRole core:relatedBy ?advisingRel .
- ?subject core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
?advisingRel core:dateTimeInterval ?dateTimeInterval .
- ?advisingRel core:dateTimeInterval ?dateTimeInterval .
?dateTimeInterval core:start ?dateTimeStartValue .
?dateTimeStartValue core:dateTime ?dateTimeStart
} WHERE {
?subject ?property ?adviseeRole .
?adviseeRole a core:AdviseeRole .
?adviseeRole core:relatedBy ?advisingRel .
- ?subject core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
?advisingRel core:dateTimeInterval ?dateTimeInterval .
?dateTimeInterval core:start ?dateTimeStartValue .
@@ -166,8 +175,8 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT {
?subject ?property ?adviseeRole .
+ ?adviseeRole a core:AdviseeRole .
?adviseeRole core:relatedBy ?advisingRel .
- ?subject core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
?advisingRel core:dateTimeInterval ?dateTimeInterval .
?dateTimeInterval core:end ?dateTimeEndValue .
@@ -175,8 +184,8 @@
} WHERE {
?subject ?property ?adviseeRole .
?adviseeRole a core:AdviseeRole .
+ ?adviseeRole a core:AdviseeRole .
?adviseeRole core:relatedBy ?advisingRel .
- ?subject core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
?advisingRel core:dateTimeInterval ?dateTimeInterval .
?dateTimeInterval core:end ?dateTimeEndValue .
diff --git a/productMods/config/listViewConfig-advisorIn.xml b/productMods/config/listViewConfig-advisorIn.xml
index 71f60a20..0182d6ea 100644
--- a/productMods/config/listViewConfig-advisorIn.xml
+++ b/productMods/config/listViewConfig-advisorIn.xml
@@ -32,12 +32,10 @@
OPTIONAL { ?advisingRel rdfs:label ?advisingRelLabel }
OPTIONAL { ?advisingRel core:relates ?advisee .
?advisee a foaf:Person .
- ?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole .
- ?adviseeRole a core:AdviseeRole .
OPTIONAL { ?advisee rdfs:label ?adviseeLabel }
}
OPTIONAL { ?advisingRel core:degreeCandidacy ?degree .
- OPTIONAL { ?degree rdfs:label ?degreeLabel }
+ ?degree rdfs:label ?degreeLabel .
OPTIONAL { ?degree core:abbreviation ?degreeAbbr }
}
@@ -123,7 +121,6 @@
?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole .
?adviseeRole a core:AdviseeRole .
?advisingRel core:degreeCandidacy ?degree .
- ?degree a core:AcademicDegree .
?degree rdfs:label ?degreeLabel .
?degree core:abbreviation ?degreeAbbr
} WHERE {
@@ -132,15 +129,6 @@
?advisorRole a core:AdvisorRole .
?advisorRole core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
- } UNION {
- ?subject ?property ?advisorRole .
- ?advisorRole a core:AdvisorRole .
- ?advisorRole core:relatedBy ?advisingRel .
- ?advisingRel a core:AdvisingRelationship .
- ?advisingRel core:relates ?advisee .
- ?advisee a foaf:Person .
- ?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRole .
- ?adviseeRole a core:AdviseeRole
} UNION {
?subject ?property ?advisorRole .
?advisorRole a core:AdvisorRole .
@@ -157,7 +145,6 @@
?advisorRole core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
?advisingRel core:degreeCandidacy ?degree .
- ?degree a core:AcademicDegree .
?degree rdfs:label ?degreeLabel .
} UNION {
?subject ?property ?advisorRole .
@@ -165,7 +152,6 @@
?advisorRole core:relatedBy ?advisingRel .
?advisingRel a core:AdvisingRelationship .
?advisingRel core:degreeCandidacy ?degree .
- ?degree a core:AcademicDegree .
?degree core:abbreviation ?degreeAbbr
}
}
diff --git a/productMods/config/listViewConfig-researchAreaOf.xml b/productMods/config/listViewConfig-researchAreaOf.xml
index b7eaec9a..3a161ec8 100644
--- a/productMods/config/listViewConfig-researchAreaOf.xml
+++ b/productMods/config/listViewConfig-researchAreaOf.xml
@@ -12,67 +12,73 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+ PREFIX obo: <http://purl.obolibrary.org/obo/>
+ PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
SELECT DISTINCT
?person
?personName
?posnLabel
+ ?org
?orgLabel
- ?type
- ?personType
?title
WHERE {
?subject ?property ?person .
- ?person core:personInPosition ?position .
- OPTIONAL { ?person rdfs:label ?personName }
- OPTIONAL { ?person core:preferredTitle ?title }
- OPTIONAL { ?person vitro:mostSpecificType ?personType .
- ?personType rdfs:subClassOf foaf:Person
+ OPTIONAL { ?person core:relatedBy ?position .
+ ?position a core:Position
+ OPTIONAL { ?position rdfs:label ?posnLabel }
}
- OPTIONAL { ?position rdfs:label ?posnLabel }
- OPTIONAL { ?position core:positionInOrganization ?org .
+ OPTIONAL { ?person rdfs:label ?personName }
+ OPTIONAL { ?person obo:ARG_2000028 ?vcard .
+ ?vcard vcard:hasTitle ?titleObj .
+ ?titleObj vcard:title ?title
+ }
+ OPTIONAL { ?position core:relates ?org .
+ ?org a foaf:Organization .
?org rdfs:label ?orgLabel
}
- OPTIONAL { ?position core:hrJobTitle ?hrJobTitle }
- OPTIONAL { ?position core:rank ?rank }
}
- ORDER BY ?personName ?type
+ ORDER BY ?personName
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX core: <http://vivoweb.org/ontology/core#>
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
CONSTRUCT {
?subject ?property ?person .
- ?person core:personInPosition ?position .
- ?position rdfs:label ?positionLabel .
- ?position core:positionInOrganization ?org .
+ ?person core:relatedBy ?position .
+ ?position a core:Position .
+ ?position rdfs:label ?posnLabel .
+ ?position core:relates ?org .
+ ?org a foaf:Organization .
?org rdfs:label ?orgName .
- ?position core:hrJobTitle ?hrJobTitle
} WHERE {
{
?subject ?property ?person
} UNION {
?subject ?property ?person .
- ?person core:personInPosition ?position
+ ?person core:relatedBy ?position .
+ ?position a core:Position .
} UNION {
?subject ?property ?person .
- ?person core:personInPosition ?position .
- ?position rdfs:label ?positionLabel
+ ?person core:relatedBy ?position .
+ ?position a core:Position .
+ ?position rdfs:label ?posnLabel
} UNION {
?subject ?property ?person .
- ?person core:personInPosition ?position .
- ?position core:positionInOrganization ?org
+ ?person core:relatedBy ?position .
+ ?position a core:Position .
+ ?position core:relates ?org .
+ ?org a foaf:Organization .
} UNION {
?subject ?property ?person .
- ?person core:personInPosition ?position .
- ?position core:positionInOrganization ?org .
+ ?person core:relatedBy ?position .
+ ?position a core:Position .
+ ?position core:relates ?org .
+ ?org a foaf:Organization .
?org rdfs:label ?orgName
- } UNION {
- ?subject ?property ?person .
- ?person core:personInPosition ?position .
- ?position core:hrJobTitle ?hrJobTitle
}
}
@@ -82,26 +88,26 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
+ PREFIX obo: <http://purl.obolibrary.org/obo/>
+ PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
CONSTRUCT {
?subject ?property ?person .
- ?person rdfs:label ?label .
- ?person core:preferredTitle ?title .
- ?person vitro:mostSpecificType ?personType .
- ?personType rdfs:subClassOf foaf:Person
+ ?person rdfs:label ?personName .
+ ?person obo:ARG_2000028 ?vcard .
+ ?vcard vcard:hasTitle ?titleObj .
+ ?titleObj vcard:title ?title
} WHERE {
{
?subject ?property ?person
} UNION {
?subject ?property ?person .
- ?person rdfs:label ?label
- } UNION {
+ ?person rdfs:label ?personName
+ } UNION {
?subject ?property ?person .
- ?person core:preferredTitle ?title
- } UNION {
- ?subject ?property ?person .
- ?person vitro:mostSpecificType ?personType .
- ?personType rdfs:subClassOf foaf:Person
+ ?person obo:ARG_2000028 ?vcard .
+ ?vcard vcard:hasTitle ?titleObj .
+ ?titleObj vcard:title ?title
}
}
diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-researchAreaOf.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-researchAreaOf.ftl
index 2dbf53ed..9e589c10 100644
--- a/productMods/templates/freemarker/body/partials/individual/propStatement-researchAreaOf.ftl
+++ b/productMods/templates/freemarker/body/partials/individual/propStatement-researchAreaOf.ftl
@@ -13,13 +13,18 @@
next statement -->
<#macro showResearchers statement>
<#local linkedIndividual>
- ${statement.personName}
+ ${statement.personName!}
#local>
<#if statement.title?has_content >
<#local posnTitle = statement.title>
- <#else>
- <#local posnTitle = statement.posnLabel!statement.personType>
+ <#elseif statement.posnLabel?has_content>
+ <#local posnTitle = statement.posnLabel>
+ #if>
+ <#if statement.org??>
+ <#local orgString>
+ ${statement.orgLabel!""}
+ #local>
#if>
- <@s.join [ linkedIndividual, posnTitle, statement.orgLabel!"" ] /> ${statement.type!}
+ <@s.join [ linkedIndividual, posnTitle!, orgString! ] />
#macro>
diff --git a/productMods/templates/freemarker/edit/forms/js/adviseeRelationshipUtils.js b/productMods/templates/freemarker/edit/forms/js/adviseeRelationshipUtils.js
index 1ec2ab53..acf69156 100644
--- a/productMods/templates/freemarker/edit/forms/js/adviseeRelationshipUtils.js
+++ b/productMods/templates/freemarker/edit/forms/js/adviseeRelationshipUtils.js
@@ -25,6 +25,7 @@ var adviseeRelUtils = {
this.form = $('#personHasAdvisingRelationship');
this.adRelshiplabel = $('#advisingRelLabel');
this.advisor = $('#advisor');
+ this.fauxLabel = $('#maskLabelBuilding');
this.subjArea = $('#SubjectArea');
this.firstName = $('#firstName');
this.lastName = $('#lastName');
@@ -56,8 +57,6 @@ var adviseeRelUtils = {
this.form.submit(function() {
adviseeRelUtils.resolveAdvisorNames();
adviseeRelUtils.buildAdvisingRelLabel();
- alert(this.adRelshiplabel.val());
- return false;
});
},
@@ -80,6 +79,12 @@ var adviseeRelUtils = {
if (firstName) {
name += ', ' + firstName;
}
+
+ // we don't want the user to see the label getting built, so hide the acSelector
+ // field and display a bogus field that just has the last name in it.
+ this.fauxLabel.val(lastName);
+ this.advisee.hide();
+ this.fauxLabel.show();
this.advisor.val(name);
this.lastName.val(lastName);
}
@@ -91,7 +96,6 @@ var adviseeRelUtils = {
},
buildAdvisingRelLabel: function() {
- alert("here");
if ( this.advisor.val() != "" ) {
this.adRelshiplabel.val(this.advisor.val() + " " + adviseeRelUtils.advisingString + " " + this.subjName);
}
diff --git a/productMods/templates/freemarker/edit/forms/personHasAdviseeRelationship.ftl b/productMods/templates/freemarker/edit/forms/personHasAdviseeRelationship.ftl
index 1a281d84..d7fe9520 100644
--- a/productMods/templates/freemarker/edit/forms/personHasAdviseeRelationship.ftl
+++ b/productMods/templates/freemarker/edit/forms/personHasAdviseeRelationship.ftl
@@ -124,6 +124,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
${i18n().advisor_capitalized}: ${i18n().last_name} ${requiredHint}${i18n().first_name} ${requiredHint}
+
diff --git a/rdf/display/everytime/PropertyConfig.n3 b/rdf/display/everytime/PropertyConfig.n3
index 7f2b7bd0..24f027fb 100644
--- a/rdf/display/everytime/PropertyConfig.n3
+++ b/rdf/display/everytime/PropertyConfig.n3
@@ -27,6 +27,7 @@ local:personInPositionConfig a :ObjectPropertyDisplayConfig ;
:propertyGroup ;
vitro:displayRankAnnot 40;
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
+ vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.PersonHasPositionHistoryGenerator"^^xsd:string .
local:organizationForPositionContext a :ConfigContext ;
@@ -41,6 +42,7 @@ local:organizationForPositionConfig a :ObjectPropertyDisplayConfig ;
:propertyGroup ;
vitro:displayRankAnnot 15;
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
+ vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.OrganizationHasPositionHistoryGenerator"^^xsd:string .
local:authorInAuthorshipContext a :ConfigContext ;
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdviseeRelationshipGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdviseeRelationshipGenerator.java
index e3690e90..22fa72fa 100644
--- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdviseeRelationshipGenerator.java
+++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdviseeRelationshipGenerator.java
@@ -93,7 +93,7 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
conf.addSparqlForExistingLiteral("endField-value", existingEndDateQuery);
conf.addSparqlForExistingUris("advisingRelType", advisingRelTypeQuery);
- conf.addSparqlForExistingUris("adviseeRole", existingAdviseeRoleQuery);
+ conf.addSparqlForExistingUris("advisingRelationship", existingAdvisingRelQuery);
conf.addSparqlForExistingUris("advisorRole", existingAdvisorRoleQuery);
conf.addSparqlForExistingUris("existingSubjArea", subjAreaQuery);
conf.addSparqlForExistingUris("existingAdvisor", advisorQuery);
@@ -249,22 +249,22 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
"?vcardName vcard:familyName ?lastName .";
final static String degreeAssertion =
- "?advisingRelationship ?degree . \n" +
- "?degree ?advisingRelationship . ";
+ "?advisingRelationship ?degree . \n" +
+ " ";
//This is for an existing subject area
//Where we only need the existing subject area label
final static String n3ForExistingSubjAreaAssertion =
- "?advisingRelationship ?existingSubjArea . \n" +
- "?existingSubjArea ?advisingRelationship . ";
+ "?advisingRelationship ?existingSubjArea . \n" +
+ "?existingSubjArea ?advisingRelationship . ";
//For new subject area, we include all new information
//new subject area should always be a new resource
//and the following should only get evaluated
//when there is something in the label
final static String n3ForNewSubjAreaAssertion =
- "?advisingRelationship ?newSubjArea . \n" +
- "?newSubjArea ?advisingRelationship . \n" +
+ "?advisingRelationship ?newSubjArea . \n" +
+ "?newSubjArea ?advisingRelationship . \n" +
"?newSubjArea <"+ label + "> ?subjAreaLabel . \n" +
"?newSubjArea a <" + subjAreaClass + "> . ";
@@ -286,70 +286,90 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
/* Queries for editing an existing entry */
+ final static String existingAdvisingRelQuery =
+ "SELECT ?advisingRelationship WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ "}";
+
final static String advisingRelTypeQuery =
"PREFIX vitro: <" + VitroVocabulary.vitroURI + "> \n" +
- "SELECT ?advisingRelType WHERE { \n" +
- " ?advisingRelationship vitro:mostSpecificType ?advisingRelType . \n" +
- "}";
-
- final static String advisorQuery =
- "SELECT ?existingAdvisor WHERE { \n" +
- " ?advisingRelationship ?existingAdvisor . \n" +
- " ?existingAdvisor a <" + advisorClass + "> . \n" +
- " FILTER (?person != ?existingAdvisor) . \n" +
- "}";
-
- final static String existingAdviseeRoleQuery =
- "SELECT ?adviseeRole WHERE { \n" +
- "?advisingRelationship ?adviseeRole . \n" +
- "?adviseeRole a <" + adviseeRoleClass + "> . \n" +
- "}";
-
- final static String existingAdvisorRoleQuery =
- "SELECT ?advisorRole WHERE { \n" +
- " ?advisingRelationship ?advisorRole . \n" +
- " ?advisorRole a <" + advisorRoleClass + "> . \n" +
- "}";
-
- final static String advisorLabelQuery =
- "SELECT ?existingAdvisorLabel WHERE { \n" +
- " ?advisingRelationship ?existingAdvisor . \n" +
- " ?existingAdvisor a <" + advisorClass + "> . \n" +
- " ?existingAdvisor <" + label + "> ?existingAdvisorLabel . \n" +
- " FILTER (?person != ?existingAdvisor) . \n" +
- "}";
-
- final static String subjAreaQuery =
- "SELECT ?existingSubjArea WHERE { \n" +
- " ?advisingRelationship ?existingSubjArea . \n" +
- " ?existingSubjArea a . \n" +
- " ?existingSubjArea ?type \n" +
- " FILTER (?type != ) . \n" +
- "}";
-
- final static String subjAreaLabelQuery =
- "SELECT ?existingSubjAreaLabel WHERE { \n" +
- " ?advisingRelationship ?existingSubjArea . \n" +
- " ?existingSubjArea a . \n" +
- " ?existingSubjArea <" + label + "> ?existingSubjAreaLabel . \n" +
- " ?existingSubjArea ?type \n" +
- " FILTER (?type != ) . \n" +
+ "SELECT ?advisingRelType WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ " ?advisingRelationship vitro:mostSpecificType ?advisingRelType . \n" +
"}";
final static String advisingRelLabelQuery =
"SELECT ?existingAdvisingRelLabel WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + label + "> ?existingAdvisingRelLabel . \n" +
"}";
+ final static String advisorQuery =
+ "SELECT ?existingAdvisor WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ " ?advisingRelationship ?existingAdvisor . \n" +
+ " ?existingAdvisor ?advisingRelationship . \n" +
+ " ?existingAdvisor a <" + advisorClass + "> . \n" +
+ " ?existingAdvisor ?existingAdvisorRole . \n" +
+ " ?existingAdvisorRole a <" + advisorRoleClass + "> . \n" +
+ "}";
+
+ final static String advisorLabelQuery =
+ "SELECT ?existingAdvisorLabel WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ " ?advisingRelationship ?existingAdvisor . \n" +
+ " ?existingAdvisor ?advisingRelationship . \n" +
+ " ?existingAdvisor a <" + advisorClass + "> . \n" +
+ " ?existingAdvisor <" + label + "> ?existingAdvisorLabel . \n" +
+ " ?existingAdvisor ?existingAdvisorRole . \n" +
+ " ?existingAdvisorRole a <" + advisorRoleClass + "> . \n" +
+ "}";
+
+ final static String existingAdvisorRoleQuery =
+ "SELECT ?existingAdvisorRole WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ " ?advisingRelationship ?existingAdvisorRole . \n" +
+ " ?existingAdvisorRole ?advisingRelationship . \n" +
+ " ?existingAdvisorRole a <" + advisorRoleClass + "> . \n" +
+ "}";
+
+ final static String subjAreaQuery =
+ "SELECT ?existingSubjArea WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ " ?advisingRelationship ?existingSubjArea . \n" +
+ " ?existingSubjArea a . \n" +
+ " ?existingSubjArea ?type \n" +
+ "}";
+
+ final static String subjAreaLabelQuery =
+ "SELECT ?existingSubjAreaLabel WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ " ?advisingRelationship ?existingSubjArea . \n" +
+ " ?existingSubjArea a . \n" +
+ " ?existingSubjArea <" + label + "> ?existingSubjAreaLabel . \n" +
+ " ?existingSubjArea ?type \n" +
+ "}";
+
final static String degreeQuery =
"SELECT ?existingDegree WHERE {\n"+
- " ?advisingRelationship ?existingDegree . \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
+ " ?advisingRelationship ?existingDegree . \n" +
" ?existingDegree a <" + degreeClass + "> . \n" +
"}";
-
final static String existingStartDateQuery =
"SELECT ?existingDateStart WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + advisingRelToInterval + "> ?intervalNode . \n" +
" ?intervalNode a <" + intervalType + "> . \n" +
" ?intervalNode <" + intervalToStart + "> ?startNode . \n" +
@@ -358,6 +378,8 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
final static String existingEndDateQuery =
"SELECT ?existingEndDate WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + advisingRelToInterval + "> ?intervalNode . \n" +
" ?intervalNode a <" + intervalType + "> . \n " +
" ?intervalNode <" + intervalToEnd + "> ?endNode . \n" +
@@ -366,11 +388,15 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
final static String existingIntervalNodeQuery =
"SELECT ?existingIntervalNode WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + advisingRelToInterval + "> ?existingIntervalNode . \n" +
" ?existingIntervalNode a <" + intervalType + "> . }";
final static String existingStartNodeQuery =
"SELECT ?existingStartNode WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + advisingRelToInterval + "> ?intervalNode . \n" +
" ?intervalNode a <" + intervalType + "> . \n" +
" ?intervalNode <" + intervalToStart + "> ?existingStartNode . \n" +
@@ -378,6 +404,8 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
final static String existingEndNodeQuery =
"SELECT ?existingEndNode WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + advisingRelToInterval + "> ?intervalNode . \n" +
" ?intervalNode a <" + intervalType + "> . \n" +
" ?intervalNode <" + intervalToEnd + "> ?existingEndNode . \n" +
@@ -385,6 +413,8 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
final static String existingStartPrecisionQuery =
"SELECT ?existingStartPrecision WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + advisingRelToInterval + "> ?intervalNode . \n" +
" ?intervalNode a <" + intervalType + "> . \n" +
" ?intervalNode <" + intervalToStart + "> ?startNode . \n" +
@@ -393,6 +423,8 @@ public class PersonHasAdviseeRelationshipGenerator extends VivoBaseGenerator imp
final static String existingEndPrecisionQuery =
"SELECT ?existingEndPrecision WHERE { \n" +
+ " ?adviseeRole ?advisingRelationship . \n" +
+ " ?advisingRelationship ?adviseeRole . \n" +
" ?advisingRelationship <" + advisingRelToInterval + "> ?intervalNode . \n" +
" ?intervalNode a <" + intervalType + "> . \n" +
" ?intervalNode <" + intervalToEnd + "> ?endNode . \n" +
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdvisorRelationshipGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdvisorRelationshipGenerator.java
index 68d02e4e..8ab694a7 100644
--- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdvisorRelationshipGenerator.java
+++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasAdvisorRelationshipGenerator.java
@@ -263,8 +263,8 @@ public class PersonHasAdvisorRelationshipGenerator extends VivoBaseGenerator imp
//when there is something in the label
final static String n3ForNewSubjAreaAssertion =
- "?advisingRelationship ?newSubjArea . \n" +
- "?newSubjArea ?advisingRelationship . \n" +
+ "?advisingRelationship ?newSubjArea . \n" +
+ "?newSubjArea ?advisingRelationship . \n" +
"?newSubjArea <"+ label + "> ?subjAreaLabel . \n" +
"?newSubjArea a <" + subjAreaClass + "> . ";
From cb611da8adb21ff878479ca86cbced928a3ccb3a Mon Sep 17 00:00:00 2001
From: tworrall
Date: Thu, 24 Oct 2013 17:18:13 -0400
Subject: [PATCH 3/4] issued credential was using dateTimeValue not dateIssued;
also property config changes for VIVO-408
---
.../themes/wilma/i18n/all_es.properties | 8 ++-
.../listViewConfig-issuedCredential.xml | 6 +-
.../edit/forms/dateTimeValueForm.ftl | 58 +++++++++++++++++++
rdf/display/everytime/PropertyConfig.n3 | 27 +++++++++
.../PersonHasIssuedCredentialGenerator.java | 2 +-
themes/wilma/i18n/all.properties | 9 ++-
6 files changed, 104 insertions(+), 6 deletions(-)
create mode 100644 productMods/templates/freemarker/edit/forms/dateTimeValueForm.ftl
diff --git a/languages/example/themes/wilma/i18n/all_es.properties b/languages/example/themes/wilma/i18n/all_es.properties
index c779a684..1dc13fa6 100644
--- a/languages/example/themes/wilma/i18n/all_es.properties
+++ b/languages/example/themes/wilma/i18n/all_es.properties
@@ -869,4 +869,10 @@ select_credential_or_enter_name = Por favor, introduzca o seleccione un valor en
type_of_credential = Tipo de Credencial
credential_name = Nombre de Credencial
selected_credential = Credential seleccionado
-year_issued = Año de Emisión
\ No newline at end of file
+year_issued = Año de Emisión
+year_awarded_for = año otorgado por
+create_year_awarded = Crear año concede
+edit_year_awarded = Editar año concede
+publication_date_for = fecha de publicación de
+create_publication_date = Crear fecha de publicación
+edit_publication_date = Editar fecha de publicación
diff --git a/productMods/config/listViewConfig-issuedCredential.xml b/productMods/config/listViewConfig-issuedCredential.xml
index a59a9fd1..349187ad 100644
--- a/productMods/config/listViewConfig-issuedCredential.xml
+++ b/productMods/config/listViewConfig-issuedCredential.xml
@@ -44,7 +44,7 @@
?dateTimeEndValue core:dateTime ?dateTimeEnd
}
}
- OPTIONAL { ?issuedCredential core:dateTimeValue ?dateTimeValue
+ OPTIONAL { ?issuedCredential core:dateIssued ?dateTimeValue
OPTIONAL { ?dateTimeValue core:dateTime ?dateTime }
}
} ORDER BY DESC(?dateTime) DESC(?dateTimeEnd)
@@ -136,12 +136,12 @@
CONSTRUCT {
?subject ?property ?issuedCredential .
?issuedCredential a core:IssuedCredential .
- ?issuedCredential core:dateTimeValue ?dateTimeValue .
+ ?issuedCredential core:dateIssued ?dateTimeValue .
?dateTimeValue core:dateTime ?dateTime
} WHERE {
?subject ?property ?issuedCredential .
?issuedCredential a core:IssuedCredential .
- ?issuedCredential core:dateTimeValue ?dateTimeValue .
+ ?issuedCredential core:dateIssued ?dateTimeValue .
?dateTimeValue core:dateTime ?dateTime
}
diff --git a/productMods/templates/freemarker/edit/forms/dateTimeValueForm.ftl b/productMods/templates/freemarker/edit/forms/dateTimeValueForm.ftl
new file mode 100644
index 00000000..48439917
--- /dev/null
+++ b/productMods/templates/freemarker/edit/forms/dateTimeValueForm.ftl
@@ -0,0 +1,58 @@
+<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
+
+<#-- Template for adding/editing time values -->
+
+<#--Retrieve certain edit configuration information-->
+<#assign editMode = editConfiguration.pageData.editMode />
+<#assign htmlForElements = editConfiguration.pageData.htmlForElements />
+<#assign domainUri = editConfiguration.pageData.domainUri!"" />
+
+<#if editMode == "edit">
+ <#assign titleVerb="${i18n().edit_capitalized}">
+ <#assign disabledVal="disabled">
+ <#assign submitButtonText="${i18n().edit_date_time_value}">
+<#else>
+ <#assign titleVerb="${i18n().create_capitalized}">
+ <#assign submitButtonText="${i18n().create_date_time_value}">
+ <#assign disabledVal=""/>
+#if>
+<#if domainUri?contains("IAO_0000030")>
+ <#assign titleObject="${i18n().publication_date_for}">
+ <#if editMode == "edit">
+ <#assign submitButtonText="${i18n().edit_publication_date}">
+ <#else>
+ <#assign submitButtonText="${i18n().create_publication_date}">
+ #if>
+<#elseif domainUri?contains("AwardReceipt")>
+ <#assign titleObject="${i18n().year_awarded_for}">
+ <#if editMode == "edit">
+ <#assign submitButtonText="${i18n().edit_year_awarded}">
+ <#else>
+ <#assign submitButtonText="${i18n().create_year_awarded}">
+ #if>
+<#else>
+ <#assign titleObject="${i18n().date_time_value_for}">
+#if>
+
+${titleVerb} ${titleObject} ${editConfiguration.subjectName}
+
+
+${stylesheets.add(' ',
+ ' ')}
+
+${scripts.add('',
+ '')}
\ No newline at end of file
diff --git a/rdf/display/everytime/PropertyConfig.n3 b/rdf/display/everytime/PropertyConfig.n3
index 24f027fb..0ae8434d 100644
--- a/rdf/display/everytime/PropertyConfig.n3
+++ b/rdf/display/everytime/PropertyConfig.n3
@@ -710,5 +710,32 @@ local:grantRelatesConfig a :ObjectPropertyDisplayConfig ;
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
:propertyGroup .
+### faux properties for dateTimeValue ###
+local:publicationDateContext a :ConfigContext ;
+ :hasConfiguration local:publicationDateConfig ;
+ :configContextFor ;
+ :qualifiedByDomain ;
+ :qualifiedBy .
+local:publicationDateConfig a :ObjectPropertyDisplayConfig ;
+ :listViewConfigFile "listViewConfig-dateTimeValue.xml"^^xsd:string ;
+ :displayName "publication date" ;
+ vitro:displayRankAnnot 10;
+ vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
+ vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
+ :propertyGroup .
+
+local:yearAwardedContext a :ConfigContext ;
+ :hasConfiguration local:yearAwardedConfig ;
+ :configContextFor ;
+ :qualifiedByDomain ;
+ :qualifiedBy .
+
+local:yearAwardedConfig a :ObjectPropertyDisplayConfig ;
+ :listViewConfigFile "listViewConfig-dateTimeValue.xml"^^xsd:string ;
+ :displayName "year awarded" ;
+ vitro:displayRankAnnot 10;
+ vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
+ vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
+ :propertyGroup .
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasIssuedCredentialGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasIssuedCredentialGenerator.java
index 594f5d4e..760b04c3 100644
--- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasIssuedCredentialGenerator.java
+++ b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasIssuedCredentialGenerator.java
@@ -28,7 +28,7 @@ public class PersonHasIssuedCredentialGenerator extends VivoBaseGenerator implem
final static String issuedCredentialTypeClass = vivoCore + "IssuedCredential";
final static String credentialTypeClass = vivoCore + "Credential";
- final static String yearCredentialedPred = vivoCore + "dateTimeValue";
+ final static String yearCredentialedPred = vivoCore + "dateIssued";
final static String issuedCredentialToInterval = vivoCore + "dateTimeInterval";
final static String intervalType = vivoCore + "DateTimeInterval";
final static String intervalToStart = vivoCore + "start";
diff --git a/themes/wilma/i18n/all.properties b/themes/wilma/i18n/all.properties
index 1f90bda2..f2a2052c 100644
--- a/themes/wilma/i18n/all.properties
+++ b/themes/wilma/i18n/all.properties
@@ -876,4 +876,11 @@ select_credential_or_enter_name = Please enter or select a value in the Credenti
type_of_credential = Type of Credential
credential_name = Credential Name
selected_credential = Selected Credential
-year_issued = Year Issued
\ No newline at end of file
+year_issued = Year Issued
+year_awarded_for = year awarded for
+create_year_awarded = Create year awarded
+edit_year_awarded = Edit year awarded
+publication_date_for = publication date for
+create_publication_date = Create publication date
+edit_publication_date = Edit publication date
+
From 55f43cfd0e794be3cf06cd84ff9afb1b110228d2 Mon Sep 17 00:00:00 2001
From: j2blake
Date: Fri, 25 Oct 2013 09:52:25 -0400
Subject: [PATCH 4/4] Tweak the formatting of supported browsers list.
---
doc/upgrade-1.6.html | 38 ++++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)
diff --git a/doc/upgrade-1.6.html b/doc/upgrade-1.6.html
index 3b7b9b58..42bc64d5 100644
--- a/doc/upgrade-1.6.html
+++ b/doc/upgrade-1.6.html
@@ -436,24 +436,26 @@ rdf/tbox/filegraph/tbox/vivo-skos-1.5.owl
For this release, the following browsers are supported.
-
- Mac:
-
-
- Chrome 30.0.1599.69 and above
- FireFox 3.6.28, 10.0.12, 24
- Opera 12.02
- Safari 5.0.3
-
-
-