NIHVIVO-3523 catch up with the trunk
This commit is contained in:
commit
bb220015d7
16 changed files with 2717 additions and 2051 deletions
|
@ -1,16 +1,25 @@
|
|||
<rdf:RDF
|
||||
xmlns:vitro-public="http://vitro.mannlib.cornell.edu/ns/vitro/public#"
|
||||
xmlns:geo="http://aims.fao.org/aos/geopolitical.owl#"
|
||||
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
|
||||
xmlns:ero="http://purl.obolibrary.org/obo/"
|
||||
xmlns:event="http://purl.org/NET/c4dm/event.owl#"
|
||||
xmlns:pvs="http://vivoweb.org/ontology/provenance-support#"
|
||||
xmlns:dcelem="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:j.0="http://www.w3.org/2006/12/owl2-xml#"
|
||||
xmlns:scirr="http://vivoweb.org/ontology/scientific-research-resource#"
|
||||
xmlns:vivo="http://vivoweb.org/ontology/core#"
|
||||
xmlns:j.1="http://purl.org/vocab/vann/"
|
||||
xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:afn="http://jena.hpl.hp.com/ARQ/function#"
|
||||
xmlns:bibo="http://purl.org/ontology/bibo/"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:j.3="http://www.w3.org/2003/06/sw-vocab-status/ns#"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||
xmlns:scires="http://vivoweb.org/ontology/scientific-research#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
|
||||
<rdf:Description rdf:about="http://purl.obolibrary.org/obo/">
|
||||
|
@ -27,11 +36,6 @@
|
|||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">number of human participants in the study (trial).</vitro:descriptionAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:nodeID="A0">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
|
||||
<owl:onProperty rdf:resource="http://purl.obolibrary.org/obo/ERO_0000460"/>
|
||||
<owl:allValuesFrom rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.obolibrary.org/obo/OBI_0000272">
|
||||
<rdfs:subClassOf rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
|
@ -43,6 +47,11 @@
|
|||
<rdfs:domain rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:nodeID="A0">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
|
||||
<owl:onProperty rdf:resource="http://purl.obolibrary.org/obo/ERO_0000460"/>
|
||||
<owl:allValuesFrom rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/scientific-research#Phase4ClinicalTrial">
|
||||
<vitro:shortDef rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Phase 4 Clinical Trial</vitro:shortDef>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
|
@ -130,14 +139,14 @@ NOTE that we are not addressing for now the issue of whether a foaf:Person is a
|
|||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/scientific-research#Phase3ClinicalTrial">
|
||||
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/ERO_0000016"/>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">In Phase 3 trials, an experimental study drug or treatment is given to large groups of people (1,000-3,000) to confirm its effectiveness, monitor side effects, compare it to commonly used treatments, and collect information that will allow the experimental drug or treatment to be used safely.
|
||||
</vitro:descriptionAnnot>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
<vitro:shortDef rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Phase 3 Clinical Trial</vitro:shortDef>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">In Phase 3 trials, an experimental study drug or treatment is given to large groups of people (1,000-3,000) to confirm its effectiveness, monitor side effects, compare it to commonly used treatments, and collect information that will allow the experimental drug or treatment to be used safely.
|
||||
</vitro:descriptionAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.obolibrary.org/obo/ERO_0000004">
|
||||
<rdfs:subClassOf rdf:nodeID="A0"/>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
<rdfs:subClassOf rdf:nodeID="A0"/>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">An implement used to facilitate work, especially precision work.</vitro:descriptionAnnot>
|
||||
<vitro:shortDef rdf:datatype="http://www.w3.org/2001/XMLSchema#string">An implement used to facilitate work, especially precision work.</vitro:shortDef>
|
||||
<rdfs:subClassOf rdf:resource="http://vivoweb.org/ontology/core#Equipment"/>
|
File diff suppressed because it is too large
Load diff
|
@ -1,16 +1,25 @@
|
|||
<rdf:RDF
|
||||
xmlns:vitro-public="http://vitro.mannlib.cornell.edu/ns/vitro/public#"
|
||||
xmlns:geo="http://aims.fao.org/aos/geopolitical.owl#"
|
||||
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
|
||||
xmlns:ero="http://purl.obolibrary.org/obo/"
|
||||
xmlns:event="http://purl.org/NET/c4dm/event.owl#"
|
||||
xmlns:pvs="http://vivoweb.org/ontology/provenance-support#"
|
||||
xmlns:dcelem="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:j.0="http://www.w3.org/2006/12/owl2-xml#"
|
||||
xmlns:scirr="http://vivoweb.org/ontology/scientific-research-resource#"
|
||||
xmlns:vivo="http://vivoweb.org/ontology/core#"
|
||||
xmlns:j.1="http://purl.org/vocab/vann/"
|
||||
xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:afn="http://jena.hpl.hp.com/ARQ/function#"
|
||||
xmlns:bibo="http://purl.org/ontology/bibo/"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:j.3="http://www.w3.org/2003/06/sw-vocab-status/ns#"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||
xmlns:scires="http://vivoweb.org/ontology/scientific-research#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
|
||||
<rdf:Description rdf:about="http://purl.obolibrary.org/obo/">
|
||||
|
@ -30,11 +39,6 @@
|
|||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">number of human participants in the study (trial).</vitro:descriptionAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:nodeID="A0">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
|
||||
<owl:onProperty rdf:resource="http://purl.obolibrary.org/obo/ERO_0000460"/>
|
||||
<owl:allValuesFrom rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.obolibrary.org/obo/OBI_0000272">
|
||||
<rdfs:subClassOf rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
|
@ -48,6 +52,11 @@
|
|||
<rdfs:domain rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:nodeID="A0">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
|
||||
<owl:onProperty rdf:resource="http://purl.obolibrary.org/obo/ERO_0000460"/>
|
||||
<owl:allValuesFrom rdf:resource="http://purl.org/ontology/bibo/Document"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/scientific-research#Phase4ClinicalTrial">
|
||||
<vitro:shortDef rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Phase 4 Clinical Trial</vitro:shortDef>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
|
@ -150,15 +159,15 @@ NOTE that we are not addressing for now the issue of whether a foaf:Person is a
|
|||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/scientific-research#Phase3ClinicalTrial">
|
||||
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/ERO_0000016"/>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">In Phase 3 trials, an experimental study drug or treatment is given to large groups of people (1,000-3,000) to confirm its effectiveness, monitor side effects, compare it to commonly used treatments, and collect information that will allow the experimental drug or treatment to be used safely.
|
||||
</vitro:descriptionAnnot>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
<rdfs:label xml:lang="en-US">Phase 3 Clinical Trial</rdfs:label>
|
||||
<vitro:shortDef rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Phase 3 Clinical Trial</vitro:shortDef>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">In Phase 3 trials, an experimental study drug or treatment is given to large groups of people (1,000-3,000) to confirm its effectiveness, monitor side effects, compare it to commonly used treatments, and collect information that will allow the experimental drug or treatment to be used safely.
|
||||
</vitro:descriptionAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.obolibrary.org/obo/ERO_0000004">
|
||||
<rdfs:subClassOf rdf:nodeID="A0"/>
|
||||
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
|
||||
<rdfs:subClassOf rdf:nodeID="A0"/>
|
||||
<rdfs:label xml:lang="en-US">Instrument</rdfs:label>
|
||||
<vitro:descriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">An implement used to facilitate work, especially precision work.</vitro:descriptionAnnot>
|
||||
<vitro:shortDef rdf:datatype="http://www.w3.org/2001/XMLSchema#string">An implement used to facilitate work, especially precision work.</vitro:shortDef>
|
File diff suppressed because it is too large
Load diff
|
@ -1,15 +1,24 @@
|
|||
<rdf:RDF
|
||||
xmlns:vitro-public="http://vitro.mannlib.cornell.edu/ns/vitro/public#"
|
||||
xmlns:geo="http://aims.fao.org/aos/geopolitical.owl#"
|
||||
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
|
||||
xmlns:ero="http://purl.obolibrary.org/obo/"
|
||||
xmlns:event="http://purl.org/NET/c4dm/event.owl#"
|
||||
xmlns:pvs="http://vivoweb.org/ontology/provenance-support#"
|
||||
xmlns:dcelem="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:j.0="http://www.w3.org/2006/12/owl2-xml#"
|
||||
xmlns:vivo="http://vivoweb.org/ontology/core#"
|
||||
xmlns:j.1="http://purl.org/vocab/vann/"
|
||||
xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:afn="http://jena.hpl.hp.com/ARQ/function#"
|
||||
xmlns:bibo="http://purl.org/ontology/bibo/"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:j.3="http://www.w3.org/2003/06/sw-vocab-status/ns#"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||
xmlns:scires="http://vivoweb.org/ontology/scientific-research#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
|
||||
<rdf:Description rdf:about="http://aims.fao.org/aos/geopolitical.owl#hasCoordinate">
|
||||
|
|
|
@ -1,15 +1,24 @@
|
|||
<rdf:RDF
|
||||
xmlns:vitro-public="http://vitro.mannlib.cornell.edu/ns/vitro/public#"
|
||||
xmlns:geo="http://aims.fao.org/aos/geopolitical.owl#"
|
||||
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
|
||||
xmlns:ero="http://purl.obolibrary.org/obo/"
|
||||
xmlns:event="http://purl.org/NET/c4dm/event.owl#"
|
||||
xmlns:pvs="http://vivoweb.org/ontology/provenance-support#"
|
||||
xmlns:dcelem="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:j.0="http://www.w3.org/2006/12/owl2-xml#"
|
||||
xmlns:vivo="http://vivoweb.org/ontology/core#"
|
||||
xmlns:j.1="http://purl.org/vocab/vann/"
|
||||
xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:afn="http://jena.hpl.hp.com/ARQ/function#"
|
||||
xmlns:bibo="http://purl.org/ontology/bibo/"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:j.3="http://www.w3.org/2003/06/sw-vocab-status/ns#"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||
xmlns:scires="http://vivoweb.org/ontology/scientific-research#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
|
||||
<rdf:Description rdf:about="http://purl.obolibrary.org/obo/">
|
|
@ -1,15 +1,24 @@
|
|||
<rdf:RDF
|
||||
xmlns:vitro-public="http://vitro.mannlib.cornell.edu/ns/vitro/public#"
|
||||
xmlns:geo="http://aims.fao.org/aos/geopolitical.owl#"
|
||||
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
|
||||
xmlns:ero="http://purl.obolibrary.org/obo/"
|
||||
xmlns:event="http://purl.org/NET/c4dm/event.owl#"
|
||||
xmlns:pvs="http://vivoweb.org/ontology/provenance-support#"
|
||||
xmlns:dcelem="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:j.0="http://www.w3.org/2006/12/owl2-xml#"
|
||||
xmlns:vivo="http://vivoweb.org/ontology/core#"
|
||||
xmlns:j.1="http://purl.org/vocab/vann/"
|
||||
xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:j.2="http://www.w3.org/2008/05/skos#"
|
||||
xmlns:afn="http://jena.hpl.hp.com/ARQ/function#"
|
||||
xmlns:bibo="http://purl.org/ontology/bibo/"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:j.3="http://www.w3.org/2003/06/sw-vocab-status/ns#"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||
xmlns:scires="http://vivoweb.org/ontology/scientific-research#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#pmcid">
|
||||
|
@ -828,6 +837,13 @@
|
|||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</vitro:displayRankAnnot>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#moniker">
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#editor"/>
|
||||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#editor"/>
|
||||
<vitro:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">3</vitro:displayLimitAnnot>
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">100</vitro:displayRankAnnot>
|
||||
<rdfs:label xml:lang="en-US">moniker (deprecated)</rdfs:label>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#Address">
|
||||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</vitro:displayLimitAnnot>
|
||||
|
@ -886,8 +902,6 @@
|
|||
</vitro:publicDescriptionAnnot>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:selectFromExistingAnnot>
|
||||
<vitro:publicDescriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This relates a geographic location to something within that geographic location, for example, an organization within that geographic location.
|
||||
</vitro:publicDescriptionAnnot>
|
||||
<rdfs:label xml:lang="en-US">geographic location of</rdfs:label>
|
||||
<vitro:fullPropertyNameAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">nearestGeographicLocationFor</vitro:fullPropertyNameAnnot>
|
||||
</rdf:Description>
|
||||
|
@ -979,11 +993,9 @@
|
|||
<rdfs:label xml:lang="en-US">contributes to</rdfs:label>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#additionalLink">
|
||||
<rdfs:label xml:lang="en-US">Additional Link</rdfs:label>
|
||||
<vitro:stubObjectPropertyAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:stubObjectPropertyAnnot>
|
||||
<vitro:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</vitro:selectFromExistingAnnot>
|
||||
<vitro:customEntryFormAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">defaultLinkForm.jsp</vitro:customEntryFormAnnot>
|
||||
<vitro:offerCreateNewOptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:offerCreateNewOptionAnnot>
|
||||
<vitro:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</vitro:selectFromExistingAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.org/ontology/bibo/pmid">
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">10</vitro:displayRankAnnot>
|
||||
|
@ -1232,14 +1244,6 @@
|
|||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#Certification">
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">2</vitro:displayRankAnnot>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<rdfs:label xml:lang="en-US">Certification</rdfs:label>
|
||||
<vitro:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">2</vitro:displayLimitAnnot>
|
||||
<vitro:inClassGroup rdf:resource="http://vivoweb.org/ontology#vitroClassGroupactivities"/>
|
||||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#featuredIn">
|
||||
<rdfs:label xml:lang="en-US">featured in</rdfs:label>
|
||||
<vitro:offerCreateNewOptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:offerCreateNewOptionAnnot>
|
||||
|
@ -1252,6 +1256,14 @@
|
|||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">50</vitro:displayRankAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#Certification">
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">2</vitro:displayRankAnnot>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<rdfs:label xml:lang="en-US">Certification</rdfs:label>
|
||||
<vitro:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">2</vitro:displayLimitAnnot>
|
||||
<vitro:inClassGroup rdf:resource="http://vivoweb.org/ontology#vitroClassGroupactivities"/>
|
||||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.org/ontology/bibo/BookSection">
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</vitro:displayLimitAnnot>
|
||||
|
@ -1850,13 +1862,13 @@
|
|||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#iclCode">
|
||||
<rdfs:label xml:lang="en-US">International Classification (ICL) code</rdfs:label>
|
||||
<vitro:publicDescriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The International classification(s) to which the published application has been assigned.
|
||||
</vitro:publicDescriptionAnnot>
|
||||
<vitro:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1</vitro:displayLimitAnnot>
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">5</vitro:displayRankAnnot>
|
||||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:inPropertyGroupAnnot rdf:resource="http://vivoweb.org/ontology#vitroPropertyGroupbibobscure"/>
|
||||
<vitro:publicDescriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The International classification(s) to which the published application has been assigned.
|
||||
</vitro:publicDescriptionAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.org/ontology/bibo/presentedAt">
|
||||
<vitro:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:selectFromExistingAnnot>
|
||||
|
@ -2077,8 +2089,9 @@
|
|||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vitro.mannlib.cornell.edu/ns/vitro/public">
|
||||
<rdfs:label>Vitro Public Ontology</rdfs:label>
|
||||
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Vitro public constructs</rdfs:label>
|
||||
<vitro:ontologyPrefixAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">vitro-public</vitro:ontologyPrefixAnnot>
|
||||
<rdfs:label>Vitro Public Ontology</rdfs:label>
|
||||
<rdfs:label xml:lang="en-US">Vitro Public Ontology</rdfs:label>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.org/ontology/bibo/isbn10">
|
||||
|
@ -2700,11 +2713,9 @@
|
|||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#primaryLink">
|
||||
<rdfs:label xml:lang="en-US">Primary Link</rdfs:label>
|
||||
<vitro:stubObjectPropertyAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:stubObjectPropertyAnnot>
|
||||
<vitro:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</vitro:selectFromExistingAnnot>
|
||||
<vitro:customEntryFormAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">defaultLinkForm.jsp</vitro:customEntryFormAnnot>
|
||||
<vitro:offerCreateNewOptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:offerCreateNewOptionAnnot>
|
||||
<vitro:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</vitro:selectFromExistingAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#PresenterRole">
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</vitro:displayRankAnnot>
|
||||
|
@ -3554,8 +3565,8 @@
|
|||
<vitro:inPropertyGroupAnnot rdf:resource="http://vivoweb.org/ontology#vitroPropertyGroupaffiliation"/>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#PrivateCompany">
|
||||
<vitro:inClassGroup rdf:resource="http://vivoweb.org/ontology#vitroClassGrouporganizations"/>
|
||||
<rdfs:label xml:lang="en-US">Private Company</rdfs:label>
|
||||
<vitro:inClassGroup rdf:resource="http://vivoweb.org/ontology#vitroClassGrouporganizations"/>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</vitro:displayLimitAnnot>
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</vitro:displayRankAnnot>
|
||||
|
@ -3655,6 +3666,13 @@
|
|||
<vitro:inClassGroup rdf:resource="http://vivoweb.org/ontology#vitroClassGrouplocations"/>
|
||||
<vitro:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</vitro:displayRankAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://www.w3.org/2000/01/rdf-schema#isDefinedBy">
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:inPropertyGroupAnnot rdf:resource="http://vivoweb.org/ontology#vitroPropertyGroupoverview"/>
|
||||
<vitro:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:selectFromExistingAnnot>
|
||||
<rdfs:label xml:lang="en-US">is defined by</rdfs:label>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://purl.org/ontology/bibo/pageEnd">
|
||||
<vitro:prohibitedFromUpdateBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
<vitro:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||
|
@ -3902,8 +3920,6 @@
|
|||
<vitro:offerCreateNewOptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</vitro:offerCreateNewOptionAnnot>
|
||||
<vitro:fullPropertyNameAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">nearestGeographicLocation</vitro:fullPropertyNameAnnot>
|
||||
<vitro:publicDescriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This relates something to its geographic location, for example, an organization to its geographic location.
|
||||
</vitro:publicDescriptionAnnot>
|
||||
<vitro:publicDescriptionAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This relates something to its geographic location, for example, an organization to its geographic location.
|
||||
</vitro:publicDescriptionAnnot>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#dateFiled">
|
|
@ -27,7 +27,7 @@ edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdatePermissionSetUris
|
|||
|
||||
# Invokes process to perform updates to align with ontology changes if needed -->
|
||||
# Needs to run before submodels are attached and Pellet is set up -->
|
||||
edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateKnowledgeBase
|
||||
#edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateKnowledgeBase
|
||||
|
||||
edu.cornell.mannlib.vitro.webapp.servlet.setup.FileGraphSetup
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
SELECT DISTINCT <collated> ?subclass </collated>
|
||||
SELECT DISTINCT ?subclass
|
||||
?authorship
|
||||
?infoResource ?infoResourceName
|
||||
?dateTime
|
||||
|
@ -46,11 +46,9 @@
|
|||
?partOfObj rdfs:label ?partOf
|
||||
}
|
||||
|
||||
<collated>
|
||||
OPTIONAL { ?infoResource vitro:mostSpecificType ?subclass .
|
||||
?subclass rdfs:subClassOf core:InformationResource
|
||||
}
|
||||
</collated>
|
||||
OPTIONAL { ?infoResource core:hasPublicationVenue ?publishedIn .
|
||||
?publishedIn rdfs:label ?journal
|
||||
}
|
||||
|
@ -61,7 +59,7 @@
|
|||
<critical-data-required>
|
||||
FILTER ( bound(?infoResource) )
|
||||
</critical-data-required>
|
||||
} ORDER BY <collated> ?subclass </collated> DESC(?dateTime) ?infoResourceName
|
||||
} ORDER BY ?subclass DESC(?dateTime) ?infoResourceName
|
||||
</query-select>
|
||||
|
||||
<query-construct>
|
||||
|
|
140
productMods/edit/forms/js/mailingAddressUtils.js
Normal file
140
productMods/edit/forms/js/mailingAddressUtils.js
Normal file
|
@ -0,0 +1,140 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
var mailingAddressUtils = {
|
||||
|
||||
onLoad: function(mode,country) {
|
||||
this.initObjectReferences();
|
||||
this.bindEventListeners();
|
||||
this.sortCountrySelector(mode,country);
|
||||
|
||||
if ( mode == "add" ) {
|
||||
this.containerDiv.hide();
|
||||
this.submitButton.hide();
|
||||
}
|
||||
else {
|
||||
this.processCountryRelatedFields();
|
||||
}
|
||||
},
|
||||
|
||||
initObjectReferences: function() {
|
||||
this.form = $('#personHasMailingAddress');
|
||||
|
||||
// The external auth ID field and messages
|
||||
this.countrySelector = $('#country');
|
||||
this.countrySelectorOptions = $('#country option');
|
||||
this.address1Field = $('#addrLineOne');
|
||||
this.cityField = $('#city');
|
||||
this.stateField = $('#state');
|
||||
this.stateSelector= $('#stateSelect');
|
||||
this.stateLabel = $('#stateLabel');
|
||||
this.postalCodeField = $('#postalCode');
|
||||
this.postalCodeLabel = $('#postalCodeLabel');
|
||||
this.subjectField = $('#subjectName');
|
||||
this.rdfsLabel = $('#addrLabel');
|
||||
this.addrTypeField = $('#addressType');
|
||||
this.submitButton = $('#submit');
|
||||
this.containerDiv = $('#addressDetails');
|
||||
this.orSpan = $('span.or');
|
||||
|
||||
},
|
||||
|
||||
bindEventListeners: function() {
|
||||
this.idCache = {};
|
||||
|
||||
this.countrySelector.change(function() {
|
||||
mailingAddressUtils.processCountryRelatedFields();
|
||||
mailingAddressUtils.showHiddenElements();
|
||||
});
|
||||
|
||||
this.form.submit(function() {
|
||||
mailingAddressUtils.buildAddressLabel();
|
||||
});
|
||||
|
||||
this.stateSelector.change(function() {
|
||||
mailingAddressUtils.setStateValue();
|
||||
});
|
||||
},
|
||||
|
||||
addressClassIsNonUS: function() {
|
||||
var country = this.countrySelector.val();
|
||||
if ( country.search( 'United States' ) == -1 ) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
buildAddressLabel: function() {
|
||||
if ( mailingAddressUtils.addressClassIsNonUS() ) {
|
||||
this.rdfsLabel.val(this.address1Field.val() + " " + this.cityField.val() + " " + this.countrySelector.val());
|
||||
}
|
||||
else {
|
||||
this.rdfsLabel.val(this.address1Field.val() + " " + this.cityField.val() + " " + this.stateField.val());
|
||||
}
|
||||
},
|
||||
|
||||
processCountryRelatedFields: function() {
|
||||
if ( mailingAddressUtils.addressClassIsNonUS() ) {
|
||||
this.stateLabel.text("Province or Region");
|
||||
this.postalCodeField.attr('size', '40');
|
||||
this.stateSelector.hide();
|
||||
this.stateField.show();
|
||||
this.addrTypeField.val("http://vivoweb.org/ontology/core#Address");
|
||||
}
|
||||
else {
|
||||
this.stateLabel.text("State");
|
||||
this.postalCodeField.attr('size', '8');
|
||||
this.stateField.hide();
|
||||
this.stateSelector.show();
|
||||
this.addrTypeField.val("http://vivoweb.org/ontology/core#USPostalAddress");
|
||||
}
|
||||
},
|
||||
|
||||
showHiddenElements: function() {
|
||||
this.containerDiv.show();
|
||||
this.submitButton.show();
|
||||
this.orSpan.show();
|
||||
},
|
||||
|
||||
setStateValue: function() {
|
||||
this.stateField.val(this.stateSelector.val());
|
||||
},
|
||||
|
||||
// in the ftl we remove the "the" that precedes some countries, so we need to
|
||||
// re-sort them alphabetically
|
||||
sortCountrySelector: function(mode,country) {
|
||||
// Get options from select box
|
||||
var the_options = this.countrySelectorOptions;
|
||||
// sort alphabetically
|
||||
the_options.sort(function(a,b) {
|
||||
if (a.text > b.text) return 1;
|
||||
else if (a.text < b.text) return -1;
|
||||
else return 0
|
||||
})
|
||||
//replace with sorted the_options;
|
||||
this.countrySelector.append( the_options );
|
||||
|
||||
// if it's add mode, add the "select one" option have it be selected;
|
||||
// if it's edit mode, add the "Select one" option but have the correct country selected.
|
||||
// if it's repair mode, add the "Select one" option but only select it if there's no country
|
||||
if ( mode == "add" ) {
|
||||
this.countrySelector.prepend($("<option selected></option>")
|
||||
.attr("value","")
|
||||
.text("Select one"));
|
||||
}
|
||||
else if ( mode == "edit" || country.length > 1 ) {
|
||||
this.countrySelector.prepend($("<option></option>")
|
||||
.attr("value","")
|
||||
.text("Select one"));
|
||||
this.countrySelector.val(country);
|
||||
}
|
||||
else if ( country.length == 0 ) {
|
||||
this.countrySelector.prepend($("<option selected></option>")
|
||||
.attr("value","")
|
||||
.text("Select one"));
|
||||
this.countrySelector.val(country);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -7,6 +7,15 @@
|
|||
<#assign rangeOptionsExist = true/>
|
||||
</#if>
|
||||
<#assign objectTypes = editConfiguration.pageData.objectTypes />
|
||||
<#assign objectTypesSize = objectTypes?length />
|
||||
<#assign objectTypesExist = false />
|
||||
<#assign multipleTypes = false />
|
||||
<#if (objectTypesSize > 1)>
|
||||
<#assign objectTypesExist = true />
|
||||
</#if>
|
||||
<#if objectTypes?contains(",")>
|
||||
<#assign multipleTypes = true/>
|
||||
</#if>
|
||||
<#assign sparqlForAcFilter = editConfiguration.pageData.sparqlForAcFilter />
|
||||
<#assign editMode = editConfiguration.pageData.editMode />
|
||||
<#assign propertyNameForDisplay = "" />
|
||||
|
@ -88,12 +97,18 @@
|
|||
|
||||
|
||||
<#assign sparqlQueryUrl = "${urls.base}/ajax/sparqlQuery" >
|
||||
|
||||
<script type="text/javascript">
|
||||
<#--Passing in object types only if there are any types returned, otherwise
|
||||
the parameter should not be passed at all to the solr search.
|
||||
Also multiple types parameter set to true only if more than one type returned-->
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
acUrl: '${urls.base}/autocomplete?tokenize=true',
|
||||
<#if objectTypesExist = true>
|
||||
acType: '${objectTypes}',
|
||||
</#if>
|
||||
<#if multipleTypes = true>
|
||||
acMultipleTypes: 'true',
|
||||
</#if>
|
||||
submitButtonTextType: 'simple',
|
||||
editMode: '${editMode}',
|
||||
typeName:'${propertyNameForDisplay}',
|
||||
|
|
|
@ -0,0 +1,211 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- this is in request.subject.name -->
|
||||
|
||||
<#-- leaving this edit/add mode code in for reference in case we decide we need it -->
|
||||
|
||||
<#import "lib-vivo-form.ftl" as lvf>
|
||||
|
||||
<#--Retrieve certain edit configuration information-->
|
||||
<#if editConfiguration.objectUri?has_content>
|
||||
<#assign editMode = "edit">
|
||||
<#else>
|
||||
<#assign editMode = "add">
|
||||
</#if>
|
||||
|
||||
<#assign htmlForElements = editConfiguration.pageData.htmlForElements />
|
||||
|
||||
<#--Retrieve variables needed-->
|
||||
<#assign addrLabelValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "addrLabel") />
|
||||
<#assign addressTypeValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "addressType") />
|
||||
<#assign addrLineOneValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "addrLineOne") />
|
||||
<#assign addrLineTwoValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "addrLineTwo") />
|
||||
<#assign addrLineThreeValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "addrLineThree") />
|
||||
<#assign cityValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "city") />
|
||||
<#assign stateValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "state") />
|
||||
<#assign postalCodeValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "postalCode") />
|
||||
<#assign countryValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "country") />
|
||||
|
||||
<#--If edit submission exists, then retrieve validation errors if they exist-->
|
||||
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
|
||||
<#assign submissionErrors = editSubmission.validationErrors/>
|
||||
</#if>
|
||||
|
||||
<#if editMode == "edit">
|
||||
<#assign titleVerb="Edit">
|
||||
<#assign submitButtonText="Edit Mailing Address">
|
||||
<#assign disabledVal="disabled">
|
||||
<#else>
|
||||
<#assign titleVerb="Create">
|
||||
<#assign submitButtonText="Create Mailing Address">
|
||||
<#assign disabledVal=""/>
|
||||
</#if>
|
||||
|
||||
<#assign requiredHint = "<span class='requiredHint'> *</span>" />
|
||||
|
||||
<h2>${titleVerb} mailing address for ${editConfiguration.subjectName}</h2>
|
||||
|
||||
<#--Display error messages if any-->
|
||||
<#if submissionErrors?has_content>
|
||||
<section id="error-alert" role="alert">
|
||||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
|
||||
<p>
|
||||
<#--Checking if any required fields are empty-->
|
||||
<#if lvf.submissionErrorExists(editSubmission, "country")>
|
||||
Please select a country.<br />
|
||||
</#if>
|
||||
<#if lvf.submissionErrorExists(editSubmission, "addrLineOne")>
|
||||
Please enter a value in the Address Line 1 field.<br />
|
||||
</#if>
|
||||
<#if lvf.submissionErrorExists(editSubmission, "city")>
|
||||
Please enter a value in the City field.<br />
|
||||
</#if>
|
||||
<#if lvf.submissionErrorExists(editSubmission, "postalCode")>
|
||||
Please enter a value in the Postal Code field.
|
||||
</#if>
|
||||
|
||||
</p>
|
||||
</section>
|
||||
</#if>
|
||||
|
||||
<@lvf.unsupportedBrowser urls.base />
|
||||
|
||||
<section id="personHasMailingAddress" role="region">
|
||||
|
||||
<form id="personHasMailingAddress" class="customForm noIE67" action="${submitUrl}" role="add/edit educational training">
|
||||
|
||||
|
||||
<p>
|
||||
<label for="country" style="margin-bottom:-4px">Country ${requiredHint}</label>
|
||||
<#assign countryOpts = editConfiguration.pageData.country />
|
||||
<select id="country" name="country" >
|
||||
<#list countryOpts?keys as key>
|
||||
<option value="${countryOpts[key]?uncap_first?replace("the ", "")?cap_first}" >
|
||||
${countryOpts[key]?uncap_first?replace("the ", "")?cap_first}
|
||||
</option>
|
||||
</#list>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<input type="hidden" id="countryEditMode" name="countryEditMode" value="${countryValue}" />
|
||||
|
||||
<div id="addressDetails" >
|
||||
<p>
|
||||
<label for="addrLineOne">Street Address 1 ${requiredHint}</label>
|
||||
<input size="50" type="text" id="addrLineOne" name="addrLineOne" value="${addrLineOneValue}" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="addrLineTwo">Street Address 2</label>
|
||||
<input size="50" type="text" id="addrLineTwo" name="addrLineTwo" value="${addrLineTwoValue}" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="addrLineThree">Street Address 3</label>
|
||||
<input size="50" type="text" id="addrLineThree" name="addrLineThree" value="${addrLineThreeValue}" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="city">City ${requiredHint}</label>
|
||||
<input size="40" type="text" id="city" name="city" value="${cityValue}" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="state" id="stateLabel">State</label>
|
||||
<input size="40" type="text" id="state" name="state" value="${stateValue}" />
|
||||
<select id="stateSelect" name="stateSelect">
|
||||
<option value="" <#if editMode == "add">selected</#if> >Select one</option>
|
||||
<option value="Alabama" <#if stateValue == "Alabama" || stateValue == "AL" >selected</#if> >Alabama</option>
|
||||
<option value="Alaska" <#if stateValue == "Alaska" || stateValue == "AK" >selected</#if> >Alaska</option>
|
||||
<option value="Arizona" <#if stateValue == "Arizona " || stateValue == "AZ" >selected</#if>>Arizona</option>
|
||||
<option value="Arkansas" <#if stateValue == "Arkansas " || stateValue == "AR" >selected</#if>>Arkansas</option>
|
||||
<option value="California" <#if stateValue == "California " || stateValue == "CA" >selected</#if>>California</option>
|
||||
<option value="Colorado" <#if stateValue == "Colorado " || stateValue == "CO" >selected</#if>>Colorado</option>
|
||||
<option value="Connecticut" <#if stateValue == "Connecticut " || stateValue == "CT" >selected</#if>>Connecticut</option>
|
||||
<option value="Delaware" <#if stateValue == "Delaware " || stateValue == "DE" >selected</#if>>Delaware</option>
|
||||
<option value="Florida" <#if stateValue == "Florida " || stateValue == "FA" >selected</#if>>Florida</option>
|
||||
<option value="Georgia" <#if stateValue == "Georgia " || stateValue == "GA" >selected</#if>>Georgia</option>
|
||||
<option value="Hawaii" <#if stateValue == "Hawaii" || stateValue == "HI" >selected</#if>>Hawaii</option>
|
||||
<option value="Idaho" <#if stateValue == "Idaho " || stateValue == "ID" >selected</#if>>Idaho</option>
|
||||
<option value="Illinois" <#if stateValue == "Illinois " || stateValue == "IL" >selected</#if>>Illinois</option>
|
||||
<option value="Indiana" <#if stateValue == "Indiana " || stateValue == "IN" >selected</#if>>Indiana</option>
|
||||
<option value="Iowa" <#if stateValue == "Iowa " || stateValue == "IA" >selected</#if>>Iowa</option>
|
||||
<option value="Kansas" <#if stateValue == "Kansas" || stateValue == "KS" >selected</#if>> Kansas</option>
|
||||
<option value="Kentucky" <#if stateValue == "Kentucky" || stateValue == "KY" >selected</#if>>Kentucky</option>
|
||||
<option value="Louisiana" <#if stateValue == "Louisiana" || stateValue == "LA" >selected</#if>>Louisiana</option>
|
||||
<option value="Maine" <#if stateValue == "Maine" || stateValue == "ME" >selected</#if>>Maine</option>
|
||||
<option value="Maryland" <#if stateValue == "Maryland" || stateValue == "MD" >selected</#if>>Maryland</option>
|
||||
<option value="Massachusetts" <#if stateValue == "Massachusetts" || stateValue == "MA" >selected</#if>>Massachusetts</option>
|
||||
<option value="Michigan" <#if stateValue == "Michigan" || stateValue == "MI" >selected</#if>>Michigan</option>
|
||||
<option value="Minnesota" <#if stateValue == "Minnesota" || stateValue == "MN" >selected</#if>>Minnesota</option>
|
||||
<option value="Mississippi" <#if stateValue == "Mississippi" || stateValue == "MS" >selected</#if>>Mississippi</option>
|
||||
<option value="Missouri" <#if stateValue == "Missouri" || stateValue == "MO" >selected</#if>>Missouri</option>
|
||||
<option value="Montana" <#if stateValue == "Montana" || stateValue == "MT" >selected</#if>>Montana</option>
|
||||
<option value="Nebraska" <#if stateValue == "Nebraska" || stateValue == "NE" >selected</#if>>Nebraska</option>
|
||||
<option value="Nevada" <#if stateValue == "Nevada" || stateValue == "NV" >selected</#if>>Nevada</option>
|
||||
<option value="New Hampshire" <#if stateValue == "New Hampshire" || stateValue == "NH" >selected</#if>>New Hampshire</option>
|
||||
<option value="New Jersey" <#if stateValue == "New Jersey" || stateValue == "NJ" >selected</#if>>New Jersey</option>
|
||||
<option value="New Mexico" <#if stateValue == "New Mexico" || stateValue == "NM" >selected</#if>>New Mexico</option>
|
||||
<option value="New York" <#if stateValue == "New York" || stateValue == "NY" >selected</#if>>New York</option>
|
||||
<option value="North Carolina<" <#if stateValue == "North Carolina" || stateValue == "NC" >selected</#if>>North Carolina</option>
|
||||
<option value="North Dakota" <#if stateValue == "North Dakota" || stateValue == "ND" >selected</#if>>North Dakota</option>
|
||||
<option value="Ohio" <#if stateValue == "Ohio" || stateValue == "OH" >selected</#if>>Ohio</option>
|
||||
<option value="Oklahoma" <#if stateValue == "Oklahoma" || stateValue == "OK" >selected</#if>>Oklahoma</option>
|
||||
<option value="Oregon" <#if stateValue == "Oregon" || stateValue == "OR" >selected</#if>>Oregon</option>
|
||||
<option value="Pennsylvania" <#if stateValue == "Pennsylvania" || stateValue == "PA" >selected</#if>>Pennsylvania</option>
|
||||
<option value="Rhode Island" <#if stateValue == "Rhode Island" || stateValue == "RI" >selected</#if>>Rhode Island</option>
|
||||
<option value="South Carolina" <#if stateValue == "South Carolina" || stateValue == "SC" >selected</#if>>South Carolina</option>
|
||||
<option value="South Dakota" <#if stateValue == "South Dakota" || stateValue == "SD" >selected</#if>>South Dakota</option>
|
||||
<option value="Tennessee" <#if stateValue == "Tennessee" || stateValue == "TN" >selected</#if>>Tennessee</option>
|
||||
<option value="Texas" <#if stateValue == "Texas" || stateValue == "TX" >selected</#if>>Texas</option>
|
||||
<option value="Utah" <#if stateValue == "Utah" || stateValue == "UT" >selected</#if>>Utah</option>
|
||||
<option value="Vermont" <#if stateValue == "Vermont" || stateValue == "VT" >selected</#if>>Vermont</option>
|
||||
<option value="Virginia" <#if stateValue == "Virginia" || stateValue == "VA" >selected</#if>>Virginia</option>
|
||||
<option value="Washington" <#if stateValue == "Washington" || stateValue == "WA" >selected</#if>>Washington</option>
|
||||
<option value="West Virginia" <#if stateValue == "West Virginia" || stateValue == "WV" >selected</#if>>West Virginia</option>
|
||||
<option value="Wisconsin" <#if stateValue == "Wisconsin" || stateValue == "WI" >selected</#if>>Wisconsin</option>
|
||||
<option value="Wyoming" <#if stateValue == "Wyoming" || stateValue == "WY" >selected</#if>>Wyoming</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="postalCode" id="postalCodeLabel">Postal Code ${requiredHint}</label>
|
||||
<input size="8" type="text" id="postalCode" name="postalCode" value="${postalCodeValue}" />
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="addrLabel" name="addrLabel" value="${addrLabelValue}" />
|
||||
<input type="hidden" id="addressType" name="addressType" value="${addressTypeValue}" />
|
||||
<input type="hidden" id="editKey" name="editKey" value="${editKey}"/>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" id="submit" value="${submitButtonText}"/><span class="or"> or </span>
|
||||
<a class="cancel" href="${cancelUrl}" title="Cancel">Cancel</a>
|
||||
</p>
|
||||
|
||||
<p id="requiredLegend" class="requiredHint">* required fields</p>
|
||||
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
mailingAddressUtils.onLoad("${editMode}","${countryValue}");
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customFormWithAutocomplete.css" />')}
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/extensions/String.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/browserUtils.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/edit/forms/js/mailingAddressUtils.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.bgiframe.pack.js"></script>')}
|
||||
|
||||
|
|
@ -59,9 +59,18 @@ public class AutocompleteObjectPropertyFormGenerator extends DefaultObjectProper
|
|||
for(VClass v: vclasses) {
|
||||
types.add(v.getURI());
|
||||
}
|
||||
//if types array contains only owl:Thing, the search will not return any results
|
||||
//In this case, return an empty array
|
||||
if(isOWLThing(types)) {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
return types;
|
||||
}
|
||||
|
||||
private boolean isOWLThing(List<String> types) {
|
||||
return(types.size() == 1 && types.get(0).equals(VitroVocabulary.OWL_THING));
|
||||
}
|
||||
|
||||
public EditMode getEditMode(VitroRequest vreq) {
|
||||
//In this case, the original jsp didn't rely on FrontEndEditingUtils
|
||||
//but instead relied on whether or not the object Uri existed
|
||||
|
|
|
@ -0,0 +1,237 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
package edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import com.hp.hpl.jena.vocabulary.RDFS;
|
||||
import com.hp.hpl.jena.vocabulary.XSD;
|
||||
|
||||
import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
|
||||
import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.DateTimeIntervalValidationVTwo;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.DateTimeWithPrecisionVTwo;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.FieldVTwo;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.validators.AntiXssValidation;
|
||||
import edu.cornell.mannlib.vitro.webapp.utils.FrontEndEditingUtils.EditMode;
|
||||
import edu.cornell.mannlib.vitro.webapp.utils.generators.EditModeUtils;
|
||||
|
||||
public class PersonHasMailingAddressGenerator extends VivoBaseGenerator implements
|
||||
EditConfigurationGenerator {
|
||||
|
||||
final static String addressClass = vivoCore + "Address";
|
||||
final static String countryPred = vivoCore + "addressCountry";
|
||||
final static String countryClass = vivoCore + "Country";
|
||||
final static String addrLine1Pred =vivoCore+"address1" ;
|
||||
final static String addrLine2Pred =vivoCore+"address2" ;
|
||||
final static String addrLine3Pred =vivoCore+"address3" ;
|
||||
final static String cityPred =vivoCore+"addressCity" ;
|
||||
final static String statePred =vivoCore+"addressState" ;
|
||||
final static String postalCodePred =vivoCore+"addressPostalCode" ;
|
||||
final static String mailingAddressPred =vivoCore+"mailingAddress" ;
|
||||
|
||||
public PersonHasMailingAddressGenerator() {}
|
||||
|
||||
// There are 4 modes that this form can be in:
|
||||
// 1. Add. There is a subject and a predicate but no position and
|
||||
// nothing else.
|
||||
//
|
||||
// 2. Normal edit where everything should already be filled out.
|
||||
// There is a subject, a object and an individual on
|
||||
// the other end of the object's core:personInOrganization stmt.
|
||||
//
|
||||
// 3. Repair a bad role node. There is a subject, predicate and object
|
||||
// but there is no individual on the other end of the object's
|
||||
// core:personInOrganization stmt. This should be similar to an add
|
||||
// but the form should be expanded.
|
||||
//
|
||||
// 4. Really bad node. multiple core:personInOrganization statements.
|
||||
|
||||
@Override
|
||||
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq,
|
||||
HttpSession session) {
|
||||
|
||||
EditConfigurationVTwo conf = new EditConfigurationVTwo();
|
||||
|
||||
initBasics(conf, vreq);
|
||||
initPropertyParameters(vreq, session, conf);
|
||||
initObjectPropForm(conf, vreq);
|
||||
|
||||
conf.setTemplate("personHasMailingAddress.ftl");
|
||||
|
||||
conf.setVarNameForSubject("person");
|
||||
conf.setVarNameForPredicate("predicate");
|
||||
conf.setVarNameForObject("address");
|
||||
|
||||
conf.setN3Required( Arrays.asList( n3ForNewAddress,
|
||||
addrLabelAssertion,
|
||||
addressTypeAssertion ) );
|
||||
conf.setN3Optional( Arrays.asList( addrLineOneAssertion, addrLineTwoAssertion, addrLineThreeAssertion, cityAssertion, stateAssertion, countryAssertion, postalCodeAssertion ) );
|
||||
|
||||
conf.addNewResource("address", DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||
|
||||
//uris in scope: none
|
||||
//literals in scope: none
|
||||
|
||||
conf.setUrisOnform(Arrays.asList("addressType"));
|
||||
conf.setLiteralsOnForm(Arrays.asList("addrLineOne", "addrLineTwo", "addrLineThree", "city", "postalCode", "addrLabel","country", "state" ));
|
||||
|
||||
conf.addSparqlForExistingLiteral("addrLabel", addrLabelQuery);
|
||||
conf.addSparqlForExistingLiteral("addrLineOne", addrLineOneQuery);
|
||||
conf.addSparqlForExistingLiteral("addrLineTwo", addrLineTwoQuery);
|
||||
conf.addSparqlForExistingLiteral("addrLineThree", addrLineThreeQuery);
|
||||
conf.addSparqlForExistingLiteral("city", cityQuery);
|
||||
conf.addSparqlForExistingLiteral("postalCode", postalCodeQuery);
|
||||
conf.addSparqlForExistingLiteral("state", stateQuery);
|
||||
conf.addSparqlForExistingLiteral("country", countryQuery);
|
||||
|
||||
conf.addSparqlForExistingUris("addressType", addressTypeQuery);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("country").
|
||||
setOptionsType( FieldVTwo.OptionsType.INDIVIDUALS_VIA_VCLASS ).
|
||||
setObjectClassUri( countryClass ) .
|
||||
setValidators( list("nonempty") )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("addrLineOne")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("nonempty") )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("addrLineTwo")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("datatype:" + XSD.xstring.toString()) )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("addrLineThree")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("datatype:" + XSD.xstring.toString()) )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("postalCode")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("nonempty") )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("city")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("nonempty") )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("state")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("datatype:" + XSD.xstring.toString()) )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("addrLabel")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("datatype:" + XSD.xstring.toString()) )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("addressType").
|
||||
setOptionsType(FieldVTwo.OptionsType.CHILD_VCLASSES).
|
||||
setObjectClassUri(addressClass)
|
||||
);
|
||||
|
||||
conf.addValidator(new AntiXssValidation());
|
||||
|
||||
prepare(vreq, conf);
|
||||
return conf;
|
||||
}
|
||||
|
||||
final static String n3ForNewAddress =
|
||||
"@prefix vivo: <" + vivoCore + "> . \n\n" +
|
||||
"?person vivo:mailingAddress ?address . \n" +
|
||||
"?address a vivo:Address . \n" +
|
||||
// "?address a ?addressType . \n" +
|
||||
"?address vivo:mailingAddressFor ?person . \n" ;
|
||||
|
||||
final static String addrLineOneAssertion =
|
||||
"?address <"+ addrLine1Pred +"> ?addrLineOne .";
|
||||
|
||||
final static String addrLineTwoAssertion =
|
||||
"?address <"+ addrLine2Pred +"> ?addrLineTwo .";
|
||||
|
||||
final static String addrLineThreeAssertion =
|
||||
"?address <"+ addrLine3Pred +"> ?addrLineThree .";
|
||||
|
||||
final static String cityAssertion =
|
||||
"?address <"+ cityPred +"> ?city .";
|
||||
|
||||
final static String postalCodeAssertion =
|
||||
"?address <"+ postalCodePred +"> ?postalCode .";
|
||||
|
||||
final static String stateAssertion =
|
||||
"?address <"+ statePred +"> ?state .";
|
||||
|
||||
final static String countryAssertion =
|
||||
"?address <" + countryPred + "> ?country .";
|
||||
|
||||
final static String addrLabelAssertion =
|
||||
"?address <" + label + "> ?addrLabel .";
|
||||
|
||||
final static String addressTypeAssertion =
|
||||
"?address a ?addressType .";
|
||||
|
||||
final static String addrLabelQuery =
|
||||
"SELECT ?existingAddrLabel WHERE { \n" +
|
||||
// " ?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
" ?address <" + label + "> ?existingAddrLabel . \n" +
|
||||
"}";
|
||||
|
||||
final static String addrLineOneQuery =
|
||||
"SELECT ?existingaddrLineOne WHERE {\n"+
|
||||
// "?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
"?address <"+ addrLine1Pred +"> ?existingaddrLineOne . }";
|
||||
|
||||
final static String addrLineTwoQuery =
|
||||
"SELECT ?existingaddrLineTwo WHERE {\n"+
|
||||
// "?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
"?address <"+ addrLine2Pred +"> ?existingaddrLineTwo . }";
|
||||
|
||||
final static String addrLineThreeQuery =
|
||||
"SELECT ?existingaddrLineThree WHERE {\n"+
|
||||
// "?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
"?address <"+ addrLine3Pred +"> ?existingaddrLineThree . }";
|
||||
|
||||
final static String cityQuery =
|
||||
"SELECT ?existingCity WHERE {\n"+
|
||||
// "?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
"?address <"+ cityPred +"> ?existingCity . }";
|
||||
|
||||
final static String stateQuery =
|
||||
"SELECT ?existingState WHERE {\n"+
|
||||
// "?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
"?address <"+ statePred +"> ?existingState . }";
|
||||
|
||||
final static String postalCodeQuery =
|
||||
"SELECT ?existingPostalCode WHERE {\n"+
|
||||
// "?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
"?address <"+ postalCodePred +"> ?existingPostalCode . }";
|
||||
|
||||
final static String countryQuery =
|
||||
"SELECT ?existingCountry WHERE {\n"+
|
||||
// "?person <"+ mailingAddressPred +"> ?address . \n" +
|
||||
"?address <"+ countryPred +"> ?existingCountry . }";
|
||||
|
||||
final static String addressTypeQuery =
|
||||
"PREFIX vitro: <" + VitroVocabulary.vitroURI + "> \n" +
|
||||
"SELECT ?existingAddressType WHERE { \n" +
|
||||
"?address vitro:mostSpecificType ?existingAddressType . }";
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue