A re-worked version of the performance testing framework.

This commit is contained in:
j2blake 2011-12-14 22:01:35 +00:00
parent 031dc3e004
commit a009f582f3
52 changed files with 7017 additions and 0 deletions

View file

@ -0,0 +1,19 @@
Contains:
Patches - used to modify the model to make it ready for testing.
userAccountsPatch.n3
Ingest this into the user-accounts model. It contains RDF for testAdmin@mydomain.edu
and selfEditor@mydomain.edu. Each has logged in previously, and each has the
password of "Password".
Queries - used to extract data from the model, for the tests to use.
get_info_resource_uris.sparql
Execute this SPARQL query and get the results in CSV. Remove any
URIs that are not in the default namespace, and then remove the default namespace
from each remaining URI. save as infoResourceUris.csv in the
modelData/[sitename] directory.
get_person_uris.sparql
Like the previous, but saved as personUris.csv
image_file_query.sparql
Save the results without alteration as modelData/[sitename]/imageFileInfo.csv, to
be processed by the _fakeUploadedFiles script.

View file

@ -0,0 +1,9 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
SELECT ?uri
WHERE
{
?uri a core:InformationResource .
}
limit 300

View file

@ -0,0 +1,9 @@
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX core: <http://vivoweb.org/ontology/core#>
SELECT ?uri
WHERE
{
?uri a foaf:Person ;
}
limit 300

View file

@ -0,0 +1,17 @@
#
# Run this sparql query and format the output as CSV to find a list of
# everywhere that VIVO expects to find an image file.
#
# Process the result file with ????? to insert dummy images in all of
# those locations.
#
PREFIX p.1: <http://vitro.mannlib.cornell.edu/ns/vitro/public#>
SELECT ?bytestreamUri ?filename
WHERE
{
?fileUri p.1:downloadLocation ?bytestreamUri;
p.1:filename ?filename.
}

View file

@ -0,0 +1,50 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://vivo.scripps.edu/individual/uSelf>
a <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#UserAccount> ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#emailAddress>
"selfEditor@mydomain.edu"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#externalAuthId>
"seditor"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#firstName>
"self"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#hasPermissionSet>
<http://permissionSet-1> ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastLoginTime>
"1322673007960"^^xsd:long ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastName>
"editor"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#loginCount>
"2"^^xsd:int ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#md5password>
"DC647EB65E6711E155375218212B3964"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#passwordLinkExpires>
"0"^^xsd:long ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#status>
"ACTIVE"^^xsd:string .
<http://vivo.scripps.edu/individual/uAdmin>
a <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#UserAccount> ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#emailAddress>
"testAdmin@mydomain.edu"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#externalAuthId>
"tadmin"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#firstName>
"test"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#hasPermissionSet>
<http://permissionSet-50> ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastLoginTime>
"1322673030151"^^xsd:long ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastName>
"admin"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#loginCount>
"3"^^xsd:int ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#md5password>
"DC647EB65E6711E155375218212B3964"^^xsd:string ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#passwordLinkExpires>
"0"^^xsd:long ;
<http://vitro.mannlib.cornell.edu/ns/vitro/authorization#status>
"ACTIVE"^^xsd:string .