Merge branch 'develop' of https://github.com/vivo-project/VIVO into develop
This commit is contained in:
commit
44f276788f
6 changed files with 85 additions and 12 deletions
21
build.xml
21
build.xml
|
@ -121,14 +121,17 @@
|
||||||
<runLicenserScript productname="Vitro core" propertiesfile="${licenser.core.properties.file}" />
|
<runLicenserScript productname="Vitro core" propertiesfile="${licenser.core.properties.file}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- =================================
|
<!-- =================================
|
||||||
target: acceptance
|
target: deployTestApp
|
||||||
================================= -->
|
================================= -->
|
||||||
<target name="acceptance" description="--> Run the Selenium acceptance tests.">
|
<target name="deployTestApp" depends="deployProperties" description="description">
|
||||||
<ant dir="${vitro.core.dir}/utilities/testrunner" target="run" inheritall="false">
|
<property name="testApp.webapp.dir" value="${tomcat.home}/webapps/testApp" />
|
||||||
<property name="acceptance.dir" location="${basedir}/utilities/acceptance-tests" />
|
<property name="testApp.source.dir" value="utilities/acceptance-tests/testApp" />
|
||||||
<property name="acceptance.batch" value="${acceptance.batch}" />
|
|
||||||
</ant>
|
<mkdir dir="${testApp.webapp.dir}" />
|
||||||
</target>
|
<sync todir="${testApp.webapp.dir}" includeemptydirs="true">
|
||||||
|
<fileset dir="${testApp.source.dir}" />
|
||||||
|
</sync>
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -7,5 +7,6 @@ CONSTRUCT {
|
||||||
} WHERE {
|
} WHERE {
|
||||||
?s vivo:orcidId ?orcidString
|
?s vivo:orcidId ?orcidString
|
||||||
FILTER(isLiteral(?orcidString))
|
FILTER(isLiteral(?orcidString))
|
||||||
|
FILTER (regex(str(?orcidString), "^[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9]([0-9]|X)$"))
|
||||||
BIND(IRI(concat("http://orcid.org/", str(?orcidString))) AS ?orcidURI)
|
BIND(IRI(concat("http://orcid.org/", str(?orcidString))) AS ?orcidURI)
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,5 @@ CONSTRUCT {
|
||||||
} WHERE {
|
} WHERE {
|
||||||
?s vivo:orcidId ?orcidString
|
?s vivo:orcidId ?orcidString
|
||||||
FILTER(isLiteral(?orcidString))
|
FILTER(isLiteral(?orcidString))
|
||||||
|
FILTER (regex(str(?orcidString), "^[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9]([0-9]|X)$"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
||||||
|
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
|
||||||
|
@prefix obo: <http://purl.obolibrary.org/obo/> .
|
||||||
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||||
|
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
|
||||||
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||||
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||||
|
@prefix vivo: <http://vivoweb.org/ontology/core#> .
|
||||||
|
|
||||||
|
<http://vivo.mydomain.edu/individual/MultiLabelFaculty>
|
||||||
|
a foaf:Person ,
|
||||||
|
vivo:FacultyMember ,
|
||||||
|
foaf:Agent ,
|
||||||
|
owl:Thing ,
|
||||||
|
obo:BFO_0000002 ,
|
||||||
|
obo:BFO_0000001 ,
|
||||||
|
obo:BFO_0000004 ;
|
||||||
|
rdfs:label "Furter, Frank "^^xsd:string ;
|
||||||
|
rdfs:label "Test Label 1 "^^xsd:string ;
|
||||||
|
rdfs:label "Test Label 2 "^^xsd:string ;
|
||||||
|
obo:ARG_2000028 <http://vivo.mydomain.edu/individual/MultiLabelVCard> ;
|
||||||
|
vitro:mostSpecificType vivo:FacultyMember .
|
||||||
|
|
||||||
|
<http://vivo.mydomain.edu/individual/MultiLabelVCard>
|
||||||
|
a obo:BFO_0000031 ,
|
||||||
|
vcard:Kind ,
|
||||||
|
obo:ARG_2000379 ,
|
||||||
|
owl:Thing ,
|
||||||
|
obo:IAO_0000030 ,
|
||||||
|
obo:BFO_0000002 ,
|
||||||
|
obo:BFO_0000001 ,
|
||||||
|
vcard:Individual ;
|
||||||
|
obo:ARG_2000029 <http://vivo.mydomain.edu/individual/MultiLabelFaculty> ;
|
||||||
|
vitro:mostSpecificType vcard:Individual ;
|
||||||
|
vcard:hasName <http://vivo.mydomain.edu/individual/MultiLabelName> .
|
||||||
|
|
||||||
|
<http://vivo.mydomain.edu/individual/MultiLabelName>
|
||||||
|
a vcard:Name ,
|
||||||
|
vcard:Geographical ,
|
||||||
|
vcard:TimeZone ,
|
||||||
|
owl:Thing ,
|
||||||
|
vcard:Organizational ,
|
||||||
|
vcard:Geo ,
|
||||||
|
vcard:Communication ,
|
||||||
|
vcard:Explanatory ,
|
||||||
|
vcard:Identification ,
|
||||||
|
vcard:Security ,
|
||||||
|
vcard:Addressing ,
|
||||||
|
vcard:Calendar ;
|
||||||
|
vitro:mostSpecificType vcard:Name ;
|
||||||
|
vcard:familyName "Furter"^^xsd:string ;
|
||||||
|
vcard:givenName "Frank"^^xsd:string .
|
|
@ -78,7 +78,7 @@ function TestLOD() {
|
||||||
|
|
||||||
function requestWithAcceptHeader(uri, mimetype) {
|
function requestWithAcceptHeader(uri, mimetype) {
|
||||||
var parms = {
|
var parms = {
|
||||||
url: "individual/" + uri,
|
url: "/vivo/individual/" + uri,
|
||||||
headers: {Accept: mimetype},
|
headers: {Accept: mimetype},
|
||||||
dataType: "text",
|
dataType: "text",
|
||||||
complete: displayResult
|
complete: displayResult
|
||||||
|
@ -89,7 +89,7 @@ function TestLOD() {
|
||||||
|
|
||||||
function requestWithFormat(uri, format) {
|
function requestWithFormat(uri, format) {
|
||||||
var parms = {
|
var parms = {
|
||||||
url: "individual/" + uri + "?format=" + format,
|
url: "/vivo/individual/" + uri + "?format=" + format,
|
||||||
dataType: "text",
|
dataType: "text",
|
||||||
complete: displayResult
|
complete: displayResult
|
||||||
};
|
};
|
||||||
|
@ -99,7 +99,7 @@ function TestLOD() {
|
||||||
|
|
||||||
function requestWithExtension(uri, extension) {
|
function requestWithExtension(uri, extension) {
|
||||||
var parms = {
|
var parms = {
|
||||||
url: "individual/" + uri + "/" + uri + "." + extension,
|
url: "/vivo/individual/" + uri + "/" + uri + "." + extension,
|
||||||
dataType: "text",
|
dataType: "text",
|
||||||
complete: displayResult
|
complete: displayResult
|
||||||
};
|
};
|
16
utilities/acceptance-tests/testApp/js/jquery.js
vendored
Normal file
16
utilities/acceptance-tests/testApp/js/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue