Преглед изворни кода

Update service api description

Arkadiusz Ryś пре 2 година
родитељ
комит
a02d75db0d
1 измењених фајлова са 7 додато и 5 уклоњено
  1. 7 5
      README.rst

+ 7 - 5
README.rst

@@ -22,14 +22,14 @@ We currently support 4 bind services out of the box:
 The outlier service relies on `another endpoint <https://msdl.uantwerpen.be/git/lucasalbertins/DTDesign/src/main/tools/typeOperations>`_ which needs to be set up and accessible.
 The outlier service relies on `another endpoint <https://msdl.uantwerpen.be/git/lucasalbertins/DTDesign/src/main/tools/typeOperations>`_ which needs to be set up and accessible.
 
 
 .. code-block:: sparql
 .. code-block:: sparql
-   :caption: SPARQL query showing bind based cell service call.
-   :emphasize-lines: 2
 
 
    PREFIX dtf: <https://ontology.rys.app/dt/function/>
    PREFIX dtf: <https://ontology.rys.app/dt/function/>
    SELECT ?cell ?cell_value WHERE {
    SELECT ?cell ?cell_value WHERE {
      SERVICE <http://localhost:8000/> {BIND(dtf:cell("data/example.csv", 0, 0) AS ?cell)}
      SERVICE <http://localhost:8000/> {BIND(dtf:cell("data/example.csv", 0, 0) AS ?cell)}
    }
    }
 
 
+SPARQL query showing bind based cell service call.
+
 URI based services
 URI based services
 ------------------
 ------------------
 
 
@@ -37,13 +37,15 @@ A second, more versatile, way to access a service is provided in the form of an
 It is possible to query cells by specifying an individual cell in the URI of the service call.
 It is possible to query cells by specifying an individual cell in the URI of the service call.
 
 
 .. code-block:: sparql
 .. code-block:: sparql
-   :caption: SPARQL query showing URI based cell service call.
-   :emphasize-lines: 2
 
 
    SELECT ?s ?p ?o WHERE {
    SELECT ?s ?p ?o WHERE {
-     SERVICE <http://localhost:8000/cell/example.csv/2/2/> {?s ?p ?o}
+     BIND(ENCODE_FOR_URI("http://ua.be/sdo2l/description/artifacts/artifacts#random-artefact") as ?e)
+     BIND(uri(concat("http://localhost:8000/cell/?iri=", ?e ,"&row=2&column=2&file_name=example.csv")) as ?c)
+     SERVICE ?c {?s ?p ?o}
    }
    }
 
 
+SPARQL query showing URI based cell service call.
+
 Installation
 Installation
 ------------
 ------------