Returns all CSDMS standard names in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request.
Returns all CSDMS standard names in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request. HTTP method: GET. Usage example: curl http://localhost:9000/CSN # Returns JSON. curl http://localhost:9000/CSN?callback=jQuery12345 # Returns JSONP.
Queries CSDMS standard names given an attribute/value pair, returning all CSDMS standard names that match in a JSON string.
Queries CSDMS standard names given an attribute/value pair, returning all CSDMS standard names that match in a JSON string. HTTP method: POST. Usage example: curl -H 'Content-type: application/json' -d '{"attribute": "base_object", "value": "wood"}' http://localhost:9000/CSNquery?graph=csdms
Similar to the previous endpoint, but body is contains raw json-ld to be added to the graph.
Similar to the previous endpoint, but body is contains raw json-ld to be added to the graph.
TODO: figure out how to properly validate the body as json-ld. Right now not providing a context still works. Missing keys are stored as XMLSchema#string.
Adds one statement into a graph.
Adds one statement into a graph. Example usage: curl -H 'Content-Type: application/json' -d '{"subject": "http://somewhere/LuigiMarini/", "predicate": "http://www.w3.org/2001/vcard-rdf/3.0#FN", "object": "Luigi Marini"}' http://localhost:9000/addRDFStatement?graph=test1
Executes the datanetwork script and returns the results in a JSON string.
Returns geocode (longitude and latitude) given a name.
Returns geocode (longitude and latitude) given a name.
Uses the Google Maps Geocoding API by default, or in_url if provided. Uses "address" as the query string by default, or in_query_term if provided. Uses 2 as the precision by default, or precision if provided.
Returns a JSON array in the format of: ["addr1: lat1, lng1", "addr2: lat2, lng2", ...] or [{"status": "no results"}] or [{"error": "error details"}].
Returns all subject names in a graph in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request.
Returns all subject names in a graph in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request. HTTP method: GET. Inputs (default values are in "routes"): graphName: String, the graph name. useLocalName: Boolean, specifies whether to use Jena Resource.getLocalName for just the local name or Resource.toString for the entire string. baseUrlLen: Int, the length of the base URL to drop if not using the local names. Usage example: curl http://localhost:9000/getSubjectNames # Returns JSON. curl 'http://localhost:9000/getSubjectNames?callback=jQuery12345' # Returns JSONP. curl 'http://localhost:9000/getSubjectNames?graph=csdms-owl' curl 'http://localhost:9000/getSubjectNames?graph=cf' curl 'http://localhost:9000/getSubjectNames?graph=test1&useLocalName=false&baseUrlLen=17'
A utility method to convert a ListBuffer[String] to JSON/JSONP depending on whether a query parameter named "callback" exists.
Lists the names of all graphs in the TDB.
Obtains the RDF data from Fuseki, and merges into the data store of this service.
Obtains the RDF data from Fuseki, and merges into the data store of this service. HTTP method: POST. Usage example: curl -H 'Content-type: application/json' -d '{"user": "gsis", "password": "password", "fuseki_url": "http://ecgs-dev.ncsa.illinois.edu:4040/db/data?default"}' http://localhost:9000/mergeFuseki?graph=SMW
Returns all ODM2 standard names in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request.
Returns all ODM2 standard names in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request. HTTP method: GET. Usage example: curl http://localhost:9000/sas/sn/odm2 # Returns JSON. curl http://localhost:9000/sas/sn/odm2?callback=jQuery12345 # Returns JSONP.
A private utility method to query all parts of a RDF triple in a given graph.
A private utility method to query all parts of a RDF triple in a given graph.
If inferenceSchemaGraphName is not given or is an empty string, directly queries the graph with no inference; otherwise it uses the Apache Jena inference engines:
If the sameAsType parameter is "owl", it uses the Jena OWL reasoner; otherwise uses a generic rule reasoner to implement the "skos:exactMatch".
The inference schema graph name are usually "variable_name_crosswalk-skos" or "variable_name_crosswalk-owl", the graph names for the Variable Name Crosswalk Knowledge Base.
Gets the content of a graph.
Removes a graph and all its content.
Returns CSDMS and ODM2 standard names that contain the given keywords in JSON format.
Returns CSDMS and ODM2 standard names that contain the given keywords in JSON format. The search is case insensitive. The keywords are expected in space separated values format. HTTP method: GET.
/sas/vars/map: returns in a map format. "csdms":["csn:name1","csn:name2"], "odm2":["odm2:name3"] /sas/vars/list: returns in a list format. ["csn:name1", "csn:name2", "odm2:name3"] /sas/vars: defaults to the list format.
Usage example: curl http://localhost:9000/sas/vars/map?term='wind%20speed'
Searches Clowder for files that contain variables used in a given model and satisfy the temporal and spatial requirements of the model, returns the set of file IDs in the Clowder instance.
Returns all udunits2 unit names in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request.
Returns all udunits2 unit names in JSON or JSONP format, depending on whether there is a "callback" query parameter in the request. HTTP method: GET. Usage example: curl http://localhost:9000/sas/unit/udunits2 # Returns JSON. curl http://localhost:9000/sas/unit/udunits2?callback=jQuery12345 # Returns JSONP.
Supports uploading of a RDF file of various format into the model.
Supports uploading of a RDF file of various format into the model. Requires a multipart/form-data content type, with a "rdffile" field containing the file content.
The file extension or content type will be automatically used to determine the language of the uploaded file. Supports all languages in Jena, such as JSON-LD, Turtle. Tested .jsonld, .ttl.
Curl syntax: curl -F "rdffile=@smw-data.ttl" http://localhost:9000/upload curl -F "rdffile=@data1.jsonld" http://localhost:9000/upload
For more details, please see http://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFDataMgr.html#read%28com.hp.hpl.jena.rdf.model.Model,%20java.lang.String%29
Returns the variable names same as the given one.