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">
|
||||
<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:about="http://vivoweb.org/ontology/core#professionalServiceActivity">
|
||||
|
|
|
@ -47,16 +47,6 @@
|
|||
?positionUri <http://www.w3.org/2000/01/rdf-schema#label> ?title.
|
||||
</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" >
|
||||
SELECT ?startYearExisting WHERE {
|
||||
?positionUri <http://vivoweb.org/ontology/core#startYear> ?startYearExisting }
|
||||
|
@ -65,22 +55,6 @@
|
|||
?positionUri <http://vivoweb.org/ontology/core#startYear> ?startYear .
|
||||
</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" >
|
||||
SELECT ?endYearExisting WHERE {
|
||||
?positionUri <http://vivoweb.org/ontology/core#endYear> ?endYearExisting }
|
||||
|
@ -89,22 +63,6 @@
|
|||
?positionUri <http://vivoweb.org/ontology/core#endYear> ?endYear .
|
||||
</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
|
||||
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 --%>
|
||||
|
@ -136,27 +94,20 @@
|
|||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||
"object" : ["positionUri", "${objectUriJson}", "URI" ],
|
||||
|
||||
"n3required" : [ "${n3ForStmtToOrg}", "${titleAssertion}" , "${personUriAssertion}" ],
|
||||
"n3optional" : [ "${startYearAssertion}","${startYearMonthAssertion}","${startDateAssertion}",
|
||||
"${endYearAssertion}","${endYearMonthAssertion}","${endDateAssertion}"],
|
||||
"n3required" : [ "${n3ForStmtToOrg}", "${titleAssertion}" , "${personUriAssertion}", "${startYearAssertion}" ],
|
||||
"n3optional" : [ "${endYearAssertion}" ],
|
||||
"newResources" : { "positionUri" : "${defaultNamespace}/position" },
|
||||
"urisInScope" : { },
|
||||
"literalsInScope": { },
|
||||
"urisOnForm" : [ "personUri" ],
|
||||
"literalsOnForm" : [ "title",
|
||||
"startYear", "startYearMonth", "startDate",
|
||||
"endYear", "endYearMonth", "endDate" ],
|
||||
"literalsOnForm" : [ "title", "startYear", "endYear" ],
|
||||
"filesOnForm" : [ ],
|
||||
"sparqlForLiterals" : { },
|
||||
"sparqlForUris" : { },
|
||||
"sparqlForExistingLiterals" : {
|
||||
"title" : "${titleExisting}",
|
||||
"startYear" : "${startYearExisting}",
|
||||
"startYearMonth" : "${startYearMonthExisting}",
|
||||
"startDate" : "${startDateExisting}",
|
||||
"endYear" : "${endYearExisting}",
|
||||
"endYearMonth" : "${endYearMonthExisting}",
|
||||
"endDate" : "${endDateExisting}"
|
||||
},
|
||||
"sparqlForExistingUris" : {
|
||||
"personUri" : "${personUriExisting}"
|
||||
|
@ -186,7 +137,7 @@
|
|||
},
|
||||
"startYear" : {
|
||||
"newResource" : "false",
|
||||
"validators" : [ ],
|
||||
"validators" : [ "nonempty", "datatype:http://www.w3.org/2001/XMLSchema#gYear"],
|
||||
"optionsType" : "UNDEFINED",
|
||||
"literalOptions" : [ ],
|
||||
"predicateUri" : "",
|
||||
|
@ -195,31 +146,9 @@
|
|||
"rangeLang" : "",
|
||||
"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" : {
|
||||
"newResource" : "false",
|
||||
"validators" : [ ],
|
||||
"validators" : [ "datatype:http://www.w3.org/2001/XMLSchema#gYear" ],
|
||||
"optionsType" : "UNDEFINED",
|
||||
"literalOptions" : [ ],
|
||||
"predicateUri" : "",
|
||||
|
@ -227,28 +156,6 @@
|
|||
"rangeDatatypeUri" : "http://www.w3.org/2001/XMLSchema#gYear",
|
||||
"rangeLang" : "",
|
||||
"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}" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -287,22 +194,11 @@
|
|||
|
||||
<h2>${title}</h2>
|
||||
<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="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-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}"/>
|
||||
<p class="submit"><v:input type="submit" id="submit" value="<%=submitLabel%>" cancel="${param.subjectUri}"/></p>
|
||||
</form>
|
||||
|
||||
<jsp:include page="${postForm}"/>
|
||||
|
|
|
@ -105,9 +105,9 @@
|
|||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||
"object" : ["positionUri", "${objectUriJson}", "URI" ],
|
||||
|
||||
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}" ],
|
||||
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearAssertion}" ],
|
||||
"n3optional" : [ "${organizationNameAssertion}","${organizationUriAssertion}",
|
||||
"${startYearAssertion}","${endYearAssertion}"],
|
||||
"${endYearAssertion}"],
|
||||
"newResources" : { "positionUri" : "${defaultNamespace}/position" },
|
||||
"urisInScope" : { },
|
||||
"literalsInScope": { },
|
||||
|
@ -162,7 +162,7 @@
|
|||
},
|
||||
"startYear" : {
|
||||
"newResource" : "false",
|
||||
"validators" : [ "datatype:http://www.w3.org/2001/XMLSchema#gYear" ],
|
||||
"validators" : [ "nonempty", "datatype:http://www.w3.org/2001/XMLSchema#gYear" ],
|
||||
"optionsType" : "UNDEFINED",
|
||||
"literalOptions" : [ ],
|
||||
"predicateUri" : "",
|
||||
|
|
|
@ -113,9 +113,9 @@
|
|||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||
"object" : ["activityUri", "${objectUriJson}", "URI" ],
|
||||
|
||||
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}" ],
|
||||
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearMonthAssertion}" ],
|
||||
"n3optional" : [ "${descriptionAssertion}", "${organizationNameAssertion}","${organizationUriAssertion}",
|
||||
"${startYearMonthAssertion}","${endYearMonthAssertion}"],
|
||||
"${endYearMonthAssertion}"],
|
||||
"newResources" : { "activityUri" : "${defaultNamespace}/serviceactivity" },
|
||||
"urisInScope" : { },
|
||||
"literalsInScope": { },
|
||||
|
@ -182,7 +182,7 @@
|
|||
},
|
||||
"startYearMonth" : {
|
||||
"newResource" : "false",
|
||||
"validators" : [ "datatype:http://www.w3.org/2001/XMLSchema#gYearMonth" ],
|
||||
"validators" : [ "nonempty", "datatype:http://www.w3.org/2001/XMLSchema#gYearMonth" ],
|
||||
"optionsType" : "UNDEFINED",
|
||||
"literalOptions" : [ ],
|
||||
"predicateUri" : "",
|
||||
|
|
Loading…
Add table
Reference in a new issue