graphdb-workbench
Version:
The web application for GraphDB APIs
1 lines • 10.2 kB
JavaScript
module.exports=function(e,t,r){e.url.includes("/rest/repositories/all")?(t.writeHead(200,{"Content-Type":"application/json"}),t.end(JSON.stringify(getAllRepositories))):/\/rest\/repositories\/[^/]+\/size\?location=/.test(e.url)?(t.writeHead(200,{"Content-Type":"application/json"}),t.end(JSON.stringify(repositorySizeInfo))):/\/rest\/security\/users\/.*/.test(e.url)?(t.writeHead(200),t.end()):/\/rest\/monitor\/repository\/[^/]+\/operations/.test(e.url)?(t.writeHead(200,{"Content-Type":"application/json"}),t.end(JSON.stringify(monitoringOperations))):/\/repositories\/[^/]+\/namespaces/.test(e.url)?(t.writeHead(200,{"Content-Type":"application/sparql-results+json"}),t.end(JSON.stringify(namespaces))):e.url.includes("/rest/autocomplete/query?q=")?(t.writeHead(200,{"Content-Type":"application/json"}),t.end(JSON.stringify(autocompleteSearchResults))):r()};const getAllRepositories={"":[{id:"starwars4",title:"",uri:"http://localhost:8080/graphdb/repositories/starwars4",externalUrl:"http://boyantonchev:7200/repositories/starwars4",local:!0,type:"graphdb",sesameType:"graphdb:SailRepository",location:"",readable:!0,writable:!0,unsupported:!1,state:"RUNNING"},{id:"marvel",title:"",uri:"http://localhost:8080/graphdb/repositories/marvel",externalUrl:"http://boyantonchev:7200/repositories/marvel",local:!0,type:"graphdb",sesameType:"graphdb:SailRepository",location:"",readable:!0,writable:!0,unsupported:!1,state:"RUNNING"},{id:"OntopRepo",title:"",uri:"http://localhost:8080/graphdb/repositories/OntopRepo",externalUrl:"http://boyantonchev:7200/repositories/OntopRepo",local:!0,type:"graphdb",sesameType:"graphdb:SailRepository",location:"",readable:!0,writable:!0,unsupported:!1,state:"RUNNING"}],"http:/localhost:7002/remote-location":[{id:"starwars4-remote",title:"",uri:"http://localhost:8080/graphdb/repositories/starwars4",externalUrl:"http://boyantonchev:7200/repositories/starwars4",local:!0,type:"graphdb",sesameType:"graphdb:SailRepository",location:"http:/localhost:7002/remote-location",readable:!0,writable:!0,unsupported:!1,state:"RUNNING"},{id:"marvel-remote",title:"",uri:"http://localhost:8080/graphdb/repositories/marvel",externalUrl:"http://boyantonchev:7200/repositories/marvel",local:!0,type:"graphdb",sesameType:"graphdb:SailRepository",location:"http:/localhost:7002/remote-location",readable:!0,writable:!0,unsupported:!1,state:"RUNNING"},{id:"OntopRepo-remote",title:"",uri:"http://localhost:8080/graphdb/repositories/OntopRepo",externalUrl:"http://boyantonchev:7200/repositories/OntopRepo",local:!0,type:"graphdb",sesameType:"graphdb:SailRepository",location:"http:/localhost:7002/remote-location",readable:!0,writable:!0,unsupported:!1,state:"RUNNING"}]},repositorySizeInfo={inferred:437,total:4412,explicit:3975},monitoringOperations={status:"INFORMATION",allRunningOperations:[{value:"25",status:"INFORMATION",type:"queries"},{value:"1",status:"INFORMATION",type:"updates"},{value:"1",status:"CRITICAL",type:"imports"},{value:"CREATE_BACKUP_IN_PROGRESS",status:"WARNING",type:"backupAndRestore"},{value:"UNAVAILABLE_NODES",status:"WARNING",type:"clusterHealth"}]},namespaces={head:{vars:["prefix","namespace"]},results:{bindings:[{prefix:{type:"literal",value:"agg"},namespace:{type:"literal",value:"http://jena.apache.org/ARQ/function/aggregate#"}},{prefix:{type:"literal",value:"sail"},namespace:{type:"literal",value:"http://www.openrdf.org/config/sail#"}},{prefix:{type:"literal",value:"owl"},namespace:{type:"literal",value:"http://www.w3.org/2002/07/owl#"}},{prefix:{type:"literal",value:"geof"},namespace:{type:"literal",value:"http://www.opengis.net/def/function/geosparql/"}},{prefix:{type:"literal",value:"xsd"},namespace:{type:"literal",value:"http://www.w3.org/2001/XMLSchema#"}},{prefix:{type:"literal",value:"fn"},namespace:{type:"literal",value:"http://www.w3.org/2005/xpath-functions"}},{prefix:{type:"literal",value:"rdfs"},namespace:{type:"literal",value:"http://www.w3.org/2000/01/rdf-schema#"}},{prefix:{type:"literal",value:"voc"},namespace:{type:"literal",value:"https://swapi.co/vocabulary/"}},{prefix:{type:"literal",value:"spif"},namespace:{type:"literal",value:"http://spinrdf.org/spif#"}},{prefix:{type:"literal",value:"path"},namespace:{type:"literal",value:"http://www.ontotext.com/path#"}},{prefix:{type:"literal",value:"array"},namespace:{type:"literal",value:"http://www.w3.org/2005/xpath-functions/array"}},{prefix:{type:"literal",value:"apf"},namespace:{type:"literal",value:"http://jena.apache.org/ARQ/property#"}},{prefix:{type:"literal",value:"xml"},namespace:{type:"literal",value:"http://www.w3.org/XML/1998/namespace"}},{prefix:{type:"literal",value:"rep"},namespace:{type:"literal",value:"http://www.openrdf.org/config/repository#"}},{prefix:{type:"literal",value:"map"},namespace:{type:"literal",value:"http://www.w3.org/2005/xpath-functions/map"}},{prefix:{type:"literal",value:"rdf4j"},namespace:{type:"literal",value:"http://rdf4j.org/schema/rdf4j#"}},{prefix:{type:"literal",value:"sr"},namespace:{type:"literal",value:"http://www.openrdf.org/config/repository/sail#"}},{prefix:{type:"literal",value:"wgs"},namespace:{type:"literal",value:"http://www.w3.org/2003/01/geo/wgs84_pos#"}},{prefix:{type:"literal",value:"gn"},namespace:{type:"literal",value:"http://www.geonames.org/ontology#"}},{prefix:{type:"literal",value:"afn"},namespace:{type:"literal",value:"http://jena.apache.org/ARQ/function#"}},{prefix:{type:"literal",value:"list"},namespace:{type:"literal",value:"http://jena.apache.org/ARQ/list#"}},{prefix:{type:"literal",value:"rdf"},namespace:{type:"literal",value:"http://www.w3.org/1999/02/22-rdf-syntax-ns#"}},{prefix:{type:"literal",value:"ofn"},namespace:{type:"literal",value:"http://www.ontotext.com/sparql/functions/"}},{prefix:{type:"literal",value:"geoext"},namespace:{type:"literal",value:"http://rdf.useekm.com/ext#"}},{prefix:{type:"literal",value:"graphdb"},namespace:{type:"literal",value:"http://www.ontotext.com/config/graphdb#"}},{prefix:{type:"literal",value:"sesame"},namespace:{type:"literal",value:"http://www.openrdf.org/schema/sesame#"}},{prefix:{type:"literal",value:"math"},namespace:{type:"literal",value:"http://www.w3.org/2005/xpath-functions/math"}},{prefix:{type:"literal",value:"omgeo"},namespace:{type:"literal",value:"http://www.ontotext.com/owlim/geo#"}}]}},autocompleteSearchResults={suggestions:[{type:"prefix",value:"list",description:"PREFIX <b>li</b>st: <http://jena.apache.org/ARQ/list#>"},{type:"uri",value:"http://www.w3.org/1999/02/22-rdf-syntax-ns#li",description:"http://www.w3.org/1999/02/22-rdf-syntax-ns#<b>li</b>"},{type:"uri",value:"http://www.w3.org/1999/02/22-rdf-syntax-ns#List",description:"http://www.w3.org/1999/02/22-rdf-syntax-ns#<b>Li</b>st"},{type:"uri",value:"http://www.w3.org/ns/hydra/core#Link",description:"http://www.w3.org/ns/hydra/core#<b>Li</b>nk"},{type:"uri",value:"http://www.w3.org/ns/hydra/core#limit",description:"http://www.w3.org/ns/hydra/core#<b>li</b>mit"},{type:"uri",value:"http://spinrdf.org/sp#limit",description:"http://spinrdf.org/sp#<b>li</b>mit"},{type:"uri",value:"http://www.w3.org/ns/odrl/2/license",description:"http://www.w3.org/ns/odrl/2/<b>li</b>cense"},{type:"uri",value:"http://usefulinc.com/ns/doap#license",description:"http://usefulinc.com/ns/doap#<b>li</b>cense"},{type:"uri",value:"http://purl.org/dc/terms/license",description:"http://purl.org/dc/terms/<b>li</b>cense"},{type:"uri",value:"http://www.w3.org/2000/01/rdf-schema#Literal",description:"http://www.w3.org/2000/01/rdf-schema#<b>Li</b>teral"},{type:"uri",value:"http://www.w3.org/ns/shacl#Literal",description:"http://www.w3.org/ns/shacl#<b>Li</b>teral"},{type:"uri",value:"http://rdfs.org/ns/void#Linkset",description:"http://rdfs.org/ns/void#<b>Li</b>nkset"},{type:"uri",value:"http://www.w3.org/ns/org#linkedTo",description:"http://www.w3.org/ns/org#<b>li</b>nkedTo"},{type:"uri",value:"http://www.w3.org/2008/05/skos-xl#literalForm",description:"http://www.w3.org/2008/05/skos-xl#<b>li</b>teralForm"},{type:"uri",value:"http://rdfs.org/ns/void#linkPredicate",description:"http://rdfs.org/ns/void#<b>li</b>nkPredicate"},{type:"uri",value:"http://purl.org/dc/terms/LicenseDocument",description:"http://purl.org/dc/terms/<b>Li</b>censeDocument"},{type:"uri",value:"http://spinrdf.org/spin#LibraryOntology",description:"http://spinrdf.org/spin#<b>Li</b>braryOntology"},{type:"uri",value:"http://purl.org/dc/terms/LinguisticSystem",description:"http://purl.org/dc/terms/<b>Li</b>nguisticSystem"},{type:"uri",value:"http://www.opengis.net/ont/geosparql#wktLiteral",description:"http://www.opengis.net/ont/geosparql#wkt<b>Li</b>teral"},{type:"uri",value:"http://www.w3.org/2004/02/skos/core#memberList",description:"http://www.w3.org/2004/02/skos/core#member<b>Li</b>st"},{type:"uri",value:"http://spinrdf.org/sp#isLiteral",description:"http://spinrdf.org/sp#is<b>Li</b>teral"},{type:"uri",value:"http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral",description:"http://www.w3.org/1999/02/22-rdf-syntax-ns#XML<b>Li</b>teral"},{type:"uri",value:"http://spinrdf.org/sp#ElementList",description:"http://spinrdf.org/sp#Element<b>Li</b>st"},{type:"uri",value:"http://www.w3.org/ns/hydra/core#TemplatedLink",description:"http://www.w3.org/ns/hydra/core#Templated<b>Li</b>nk"},{type:"uri",value:"https://swapi.co/vocabulary/averageLifespan",description:"https://swapi.co/vocabulary/average<b>Li</b>fespan"},{type:"uri",value:"http://spinrdf.org/sp#ReverseLinkPath",description:"http://spinrdf.org/sp#Reverse<b>Li</b>nkPath"},{type:"uri",value:"http://usefulinc.com/ns/doap#mailing-list",description:"http://usefulinc.com/ns/doap#mailing-<b>li</b>st"},{type:"uri",value:"http://www.w3.org/ns/shacl#IRIOrLiteral",description:"http://www.w3.org/ns/shacl#IRIOr<b>Li</b>teral"},{type:"uri",value:"http://www.w3.org/2006/vcard/ns#hasCalendarLink",description:"http://www.w3.org/2006/vcard/ns#hasCalendar<b>Li</b>nk"},{type:"uri",value:"http://www.w3.org/ns/shacl#BlankNodeOrLiteral",description:"http://www.w3.org/ns/shacl#BlankNodeOr<b>Li</b>teral"},{type:"uri",value:"http://rdf4j.org/shacl-extensions#DataAndShapesGraphLink",description:"http://rdf4j.org/shacl-extensions#DataAndShapesGraph<b>Li</b>nk"}]};