Tweaks to custom forms for personHasServiceActivity, personHasPositionHistory, and organizationHasPositionHistory
This commit is contained in:
parent
3f97928832
commit
f47e13a66c
4 changed files with 15 additions and 119 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#ServiceActivity">
|
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#ServiceActivity">
|
||||||
<rdfs:subClassOf rdf:resource="http://vivoweb.org/ontology/core#ActivityDescription"/>
|
<rdfs:subClassOf rdf:resource="http://vivoweb.org/ontology/core#ActivityDescription"/>
|
||||||
<j.0:customShortViewAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">professionalServiceActivityShortView.jsp</j.0:customShortViewAnnot>
|
<j.0:customShortViewAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">serviceActivityShortView.jsp</j.0:customShortViewAnnot>
|
||||||
</rdf:Description>
|
</rdf:Description>
|
||||||
|
|
||||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#professionalServiceActivity">
|
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#professionalServiceActivity">
|
||||||
|
|
|
@ -47,16 +47,6 @@
|
||||||
?positionUri <http://www.w3.org/2000/01/rdf-schema#label> ?title.
|
?positionUri <http://www.w3.org/2000/01/rdf-schema#label> ?title.
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<%--
|
|
||||||
<v:jsonset var="organizationNameExisting" >
|
|
||||||
SELECT ?existingOrgName WHERE {
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#involvedOrganizationName> ?existingOrgName }
|
|
||||||
</v:jsonset>
|
|
||||||
<v:jsonset var="organizationNameAssertion" >
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#involvedOrganizationName> ?organizationName .
|
|
||||||
</v:jsonset>
|
|
||||||
--%>
|
|
||||||
|
|
||||||
<v:jsonset var="startYearExisting" >
|
<v:jsonset var="startYearExisting" >
|
||||||
SELECT ?startYearExisting WHERE {
|
SELECT ?startYearExisting WHERE {
|
||||||
?positionUri <http://vivoweb.org/ontology/core#startYear> ?startYearExisting }
|
?positionUri <http://vivoweb.org/ontology/core#startYear> ?startYearExisting }
|
||||||
|
@ -65,22 +55,6 @@
|
||||||
?positionUri <http://vivoweb.org/ontology/core#startYear> ?startYear .
|
?positionUri <http://vivoweb.org/ontology/core#startYear> ?startYear .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="startYearMonthExisting" >
|
|
||||||
SELECT ?startYearMonthExisting WHERE {
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#startYearMonth> ?startYearMonthExisting }
|
|
||||||
</v:jsonset>
|
|
||||||
<v:jsonset var="startYearMonthAssertion" >
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#startYearMonth> ?startYearMonth .
|
|
||||||
</v:jsonset>
|
|
||||||
|
|
||||||
<v:jsonset var="startDateExisting" >
|
|
||||||
SELECT ?startDateExisting WHERE {
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#startDate> ?startDateExisting }
|
|
||||||
</v:jsonset>
|
|
||||||
<v:jsonset var="startDateAssertion" >
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#startDate> ?startDate .
|
|
||||||
</v:jsonset>
|
|
||||||
|
|
||||||
<v:jsonset var="endYearExisting" >
|
<v:jsonset var="endYearExisting" >
|
||||||
SELECT ?endYearExisting WHERE {
|
SELECT ?endYearExisting WHERE {
|
||||||
?positionUri <http://vivoweb.org/ontology/core#endYear> ?endYearExisting }
|
?positionUri <http://vivoweb.org/ontology/core#endYear> ?endYearExisting }
|
||||||
|
@ -89,22 +63,6 @@
|
||||||
?positionUri <http://vivoweb.org/ontology/core#endYear> ?endYear .
|
?positionUri <http://vivoweb.org/ontology/core#endYear> ?endYear .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="endYearMonthExisting" >
|
|
||||||
SELECT ?endYearMonthExisting WHERE {
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#endYearMonth> ?endYearMonthExisting }
|
|
||||||
</v:jsonset>
|
|
||||||
<v:jsonset var="endYearMonthAssertion" >
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#endYearMonth> ?endYearMonth .
|
|
||||||
</v:jsonset>
|
|
||||||
|
|
||||||
<v:jsonset var="endDateExisting" >
|
|
||||||
SELECT ?endDateExisting WHERE {
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#endDate> ?endDateExisting }
|
|
||||||
</v:jsonset>
|
|
||||||
<v:jsonset var="endDateAssertion" >
|
|
||||||
?positionUri <http://vivoweb.org/ontology/core#endDate> ?endDate .
|
|
||||||
</v:jsonset>
|
|
||||||
|
|
||||||
<%-- Note there is really no difference in how things are set up for an object property except
|
<%-- Note there is really no difference in how things are set up for an object property except
|
||||||
below in the n3ForEdit section, in whether the ..Existing variable goes in SparqlForExistingLiterals
|
below in the n3ForEdit section, in whether the ..Existing variable goes in SparqlForExistingLiterals
|
||||||
or in the SparqlForExistingUris, as well as perhaps in how the options are prepared --%>
|
or in the SparqlForExistingUris, as well as perhaps in how the options are prepared --%>
|
||||||
|
@ -136,27 +94,20 @@
|
||||||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||||
"object" : ["positionUri", "${objectUriJson}", "URI" ],
|
"object" : ["positionUri", "${objectUriJson}", "URI" ],
|
||||||
|
|
||||||
"n3required" : [ "${n3ForStmtToOrg}", "${titleAssertion}" , "${personUriAssertion}" ],
|
"n3required" : [ "${n3ForStmtToOrg}", "${titleAssertion}" , "${personUriAssertion}", "${startYearAssertion}" ],
|
||||||
"n3optional" : [ "${startYearAssertion}","${startYearMonthAssertion}","${startDateAssertion}",
|
"n3optional" : [ "${endYearAssertion}" ],
|
||||||
"${endYearAssertion}","${endYearMonthAssertion}","${endDateAssertion}"],
|
|
||||||
"newResources" : { "positionUri" : "${defaultNamespace}/position" },
|
"newResources" : { "positionUri" : "${defaultNamespace}/position" },
|
||||||
"urisInScope" : { },
|
"urisInScope" : { },
|
||||||
"literalsInScope": { },
|
"literalsInScope": { },
|
||||||
"urisOnForm" : [ "personUri" ],
|
"urisOnForm" : [ "personUri" ],
|
||||||
"literalsOnForm" : [ "title",
|
"literalsOnForm" : [ "title", "startYear", "endYear" ],
|
||||||
"startYear", "startYearMonth", "startDate",
|
|
||||||
"endYear", "endYearMonth", "endDate" ],
|
|
||||||
"filesOnForm" : [ ],
|
"filesOnForm" : [ ],
|
||||||
"sparqlForLiterals" : { },
|
"sparqlForLiterals" : { },
|
||||||
"sparqlForUris" : { },
|
"sparqlForUris" : { },
|
||||||
"sparqlForExistingLiterals" : {
|
"sparqlForExistingLiterals" : {
|
||||||
"title" : "${titleExisting}",
|
"title" : "${titleExisting}",
|
||||||
"startYear" : "${startYearExisting}",
|
"startYear" : "${startYearExisting}",
|
||||||
"startYearMonth" : "${startYearMonthExisting}",
|
|
||||||
"startDate" : "${startDateExisting}",
|
|
||||||
"endYear" : "${endYearExisting}",
|
"endYear" : "${endYearExisting}",
|
||||||
"endYearMonth" : "${endYearMonthExisting}",
|
|
||||||
"endDate" : "${endDateExisting}"
|
|
||||||
},
|
},
|
||||||
"sparqlForExistingUris" : {
|
"sparqlForExistingUris" : {
|
||||||
"personUri" : "${personUriExisting}"
|
"personUri" : "${personUriExisting}"
|
||||||
|
@ -186,7 +137,7 @@
|
||||||
},
|
},
|
||||||
"startYear" : {
|
"startYear" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
"validators" : [ ],
|
"validators" : [ "nonempty", "datatype:http://www.w3.org/2001/XMLSchema#gYear"],
|
||||||
"optionsType" : "UNDEFINED",
|
"optionsType" : "UNDEFINED",
|
||||||
"literalOptions" : [ ],
|
"literalOptions" : [ ],
|
||||||
"predicateUri" : "",
|
"predicateUri" : "",
|
||||||
|
@ -195,31 +146,9 @@
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : ["${startYearAssertion}"]
|
"assertions" : ["${startYearAssertion}"]
|
||||||
},
|
},
|
||||||
"startYearMonth" : {
|
|
||||||
"newResource" : "false",
|
|
||||||
"validators" : [],
|
|
||||||
"optionsType" : "UNDEFINED",
|
|
||||||
"literalOptions" : [ ],
|
|
||||||
"predicateUri" : "",
|
|
||||||
"objectClassUri" : "",
|
|
||||||
"rangeDatatypeUri" : "http://www.w3.org/2001/XMLSchema#gYearMonth";
|
|
||||||
"rangeLang" : "",
|
|
||||||
"assertions" : [ "${startYearMonthAssertion}" ]
|
|
||||||
},
|
|
||||||
"startDate" : {
|
|
||||||
"newResource" : "false",
|
|
||||||
"validators" : [],
|
|
||||||
"optionsType" : "UNDEFINED",
|
|
||||||
"literalOptions" : [],
|
|
||||||
"predicateUri" : "",
|
|
||||||
"objectClassUri" : "",
|
|
||||||
"rangeDatatypeUri" : "http://www.w3.org/2001/XMLSchema#Date",
|
|
||||||
"rangeLang" : "",
|
|
||||||
"assertions" : [ "${startDateAssertion}" ]
|
|
||||||
},
|
|
||||||
"endYear" : {
|
"endYear" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
"validators" : [ ],
|
"validators" : [ "datatype:http://www.w3.org/2001/XMLSchema#gYear" ],
|
||||||
"optionsType" : "UNDEFINED",
|
"optionsType" : "UNDEFINED",
|
||||||
"literalOptions" : [ ],
|
"literalOptions" : [ ],
|
||||||
"predicateUri" : "",
|
"predicateUri" : "",
|
||||||
|
@ -227,29 +156,7 @@
|
||||||
"rangeDatatypeUri" : "http://www.w3.org/2001/XMLSchema#gYear",
|
"rangeDatatypeUri" : "http://www.w3.org/2001/XMLSchema#gYear",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : ["${endYearAssertion}"]
|
"assertions" : ["${endYearAssertion}"]
|
||||||
},
|
}
|
||||||
"endYearMonth" : {
|
|
||||||
"newResource" : "false",
|
|
||||||
"validators" : [],
|
|
||||||
"optionsType" : "UNDEFINED",
|
|
||||||
"literalOptions" : [ ],
|
|
||||||
"predicateUri" : "",
|
|
||||||
"objectClassUri" : "",
|
|
||||||
"rangeDatatypeUri" : "http://www.w3.org/2001/XMLSchema#gYearMonth";
|
|
||||||
"rangeLang" : "",
|
|
||||||
"assertions" : [ "${endYearMonthAssertion}" ]
|
|
||||||
},
|
|
||||||
"endDate" : {
|
|
||||||
"newResource" : "false",
|
|
||||||
"validators" : [],
|
|
||||||
"optionsType" : "UNDEFINED",
|
|
||||||
"literalOptions" : [],
|
|
||||||
"predicateUri" : "",
|
|
||||||
"objectClassUri" : "",
|
|
||||||
"rangeDatatypeUri" : "http://www.w3.org/2001/XMLSchema#Date",
|
|
||||||
"rangeLang" : "",
|
|
||||||
"assertions" : [ "${endDateAssertion}" ]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</c:set>
|
</c:set>
|
||||||
|
@ -287,22 +194,11 @@
|
||||||
|
|
||||||
<h2>${title}</h2>
|
<h2>${title}</h2>
|
||||||
<form action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
<form action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
||||||
<v:input type="text" label="title" id="title" size="30" />
|
<v:input type="text" label="title" id="title" size="30"/>
|
||||||
<v:input type="select" label="person" id="personUri" />
|
<v:input type="select" label="person" id="personUri" />
|
||||||
<v:input type="text" label="start year (YYYY)" id="startYear" size="4"/>
|
<v:input type="text" label="start year (YYYY)" id="startYear" size="4"/>
|
||||||
|
|
||||||
<%--
|
|
||||||
<v:input type="text" label="startYearMonth" id="startYearMonth" size="7"/>
|
|
||||||
<v:input type="text" label="start date" id="startDate" size="10"/>
|
|
||||||
--%>
|
|
||||||
|
|
||||||
<v:input type="text" label="end year (YYYY)" id="endYear" size="4"/>
|
<v:input type="text" label="end year (YYYY)" id="endYear" size="4"/>
|
||||||
|
<p class="submit"><v:input type="submit" id="submit" value="<%=submitLabel%>" cancel="${param.subjectUri}"/></p>
|
||||||
<%--
|
|
||||||
<v:input type="text" label="end year-month" id="endYearMonth" size="7"/>
|
|
||||||
<v:input type="text" label="end date" id="endDate" size="10"/>
|
|
||||||
--%>
|
|
||||||
<v:input type="submit" id="submit" value="<%=submitLabel%>" cancel="${param.subjectUri}"/>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<jsp:include page="${postForm}"/>
|
<jsp:include page="${postForm}"/>
|
||||||
|
|
|
@ -105,9 +105,9 @@
|
||||||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||||
"object" : ["positionUri", "${objectUriJson}", "URI" ],
|
"object" : ["positionUri", "${objectUriJson}", "URI" ],
|
||||||
|
|
||||||
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}" ],
|
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearAssertion}" ],
|
||||||
"n3optional" : [ "${organizationNameAssertion}","${organizationUriAssertion}",
|
"n3optional" : [ "${organizationNameAssertion}","${organizationUriAssertion}",
|
||||||
"${startYearAssertion}","${endYearAssertion}"],
|
"${endYearAssertion}"],
|
||||||
"newResources" : { "positionUri" : "${defaultNamespace}/position" },
|
"newResources" : { "positionUri" : "${defaultNamespace}/position" },
|
||||||
"urisInScope" : { },
|
"urisInScope" : { },
|
||||||
"literalsInScope": { },
|
"literalsInScope": { },
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
},
|
},
|
||||||
"startYear" : {
|
"startYear" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
"validators" : [ "datatype:http://www.w3.org/2001/XMLSchema#gYear" ],
|
"validators" : [ "nonempty", "datatype:http://www.w3.org/2001/XMLSchema#gYear" ],
|
||||||
"optionsType" : "UNDEFINED",
|
"optionsType" : "UNDEFINED",
|
||||||
"literalOptions" : [ ],
|
"literalOptions" : [ ],
|
||||||
"predicateUri" : "",
|
"predicateUri" : "",
|
||||||
|
|
|
@ -113,9 +113,9 @@
|
||||||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||||
"object" : ["activityUri", "${objectUriJson}", "URI" ],
|
"object" : ["activityUri", "${objectUriJson}", "URI" ],
|
||||||
|
|
||||||
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}" ],
|
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearMonthAssertion}" ],
|
||||||
"n3optional" : [ "${descriptionAssertion}", "${organizationNameAssertion}","${organizationUriAssertion}",
|
"n3optional" : [ "${descriptionAssertion}", "${organizationNameAssertion}","${organizationUriAssertion}",
|
||||||
"${startYearMonthAssertion}","${endYearMonthAssertion}"],
|
"${endYearMonthAssertion}"],
|
||||||
"newResources" : { "activityUri" : "${defaultNamespace}/serviceactivity" },
|
"newResources" : { "activityUri" : "${defaultNamespace}/serviceactivity" },
|
||||||
"urisInScope" : { },
|
"urisInScope" : { },
|
||||||
"literalsInScope": { },
|
"literalsInScope": { },
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
},
|
},
|
||||||
"startYearMonth" : {
|
"startYearMonth" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
"validators" : [ "datatype:http://www.w3.org/2001/XMLSchema#gYearMonth" ],
|
"validators" : [ "nonempty", "datatype:http://www.w3.org/2001/XMLSchema#gYearMonth" ],
|
||||||
"optionsType" : "UNDEFINED",
|
"optionsType" : "UNDEFINED",
|
||||||
"literalOptions" : [ ],
|
"literalOptions" : [ ],
|
||||||
"predicateUri" : "",
|
"predicateUri" : "",
|
||||||
|
|
Loading…
Add table
Reference in a new issue