Merge branch 'develop' of https://github.com/vivo-project/VIVO into develop

This commit is contained in:
Holly Mistlebauer 2014-03-31 15:09:57 -04:00
commit 44f276788f
6 changed files with 85 additions and 12 deletions

View file

@ -121,14 +121,17 @@
<runLicenserScript productname="Vitro core" propertiesfile="${licenser.core.properties.file}" />
</target>
<!-- =================================
target: acceptance
================================= -->
<target name="acceptance" description="--> Run the Selenium acceptance tests.">
<ant dir="${vitro.core.dir}/utilities/testrunner" target="run" inheritall="false">
<property name="acceptance.dir" location="${basedir}/utilities/acceptance-tests" />
<property name="acceptance.batch" value="${acceptance.batch}" />
</ant>
</target>
<!-- =================================
target: deployTestApp
================================= -->
<target name="deployTestApp" depends="deployProperties" description="description">
<property name="testApp.webapp.dir" value="${tomcat.home}/webapps/testApp" />
<property name="testApp.source.dir" value="utilities/acceptance-tests/testApp" />
<mkdir dir="${testApp.webapp.dir}" />
<sync todir="${testApp.webapp.dir}" includeemptydirs="true">
<fileset dir="${testApp.source.dir}" />
</sync>
</target>
</project>

View file

@ -7,5 +7,6 @@ CONSTRUCT {
} WHERE {
?s vivo:orcidId ?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)
}

View file

@ -6,4 +6,5 @@ CONSTRUCT {
} WHERE {
?s vivo:orcidId ?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)$"))
}

View file

@ -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 .

View file

@ -78,7 +78,7 @@ function TestLOD() {
function requestWithAcceptHeader(uri, mimetype) {
var parms = {
url: "individual/" + uri,
url: "/vivo/individual/" + uri,
headers: {Accept: mimetype},
dataType: "text",
complete: displayResult
@ -89,7 +89,7 @@ function TestLOD() {
function requestWithFormat(uri, format) {
var parms = {
url: "individual/" + uri + "?format=" + format,
url: "/vivo/individual/" + uri + "?format=" + format,
dataType: "text",
complete: displayResult
};
@ -99,7 +99,7 @@ function TestLOD() {
function requestWithExtension(uri, extension) {
var parms = {
url: "individual/" + uri + "/" + uri + "." + extension,
url: "/vivo/individual/" + uri + "/" + uri + "." + extension,
dataType: "text",
complete: displayResult
};

File diff suppressed because one or more lines are too long