Skip to content

Commit

Permalink
👽 Add visualize SPARQL route
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomoronconiobda authored Sep 2, 2024
1 parent 379f546 commit fc4f48b
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions apis/sparqling/sparqling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ tags:
description: These operations will modify the query graph optional part.
- name: QueryGraphExtra
description: These are extra operations for the query graph.
- name: VisualizeSPARQL
description: These operations will translate a SPARQL query in a query graph to be visualized and modified in Sparqling
paths:
/owlOntology/{ontologyName}/highlights:
get:
Expand Down Expand Up @@ -460,8 +462,8 @@ paths:
404:
description: Entity not found
content: {}
? /owlOntology/{ontologyName}/queryGraph/node/join/{graphElementId1}/{graphElementId2}
: put:
/owlOntology/{ontologyName}/queryGraph/node/join/{graphElementId1}/{graphElementId2}:
put:
tags:
- QueryGraphBGP
summary: Join two GraphNodeElement in one.
Expand Down Expand Up @@ -1421,7 +1423,6 @@ paths:
404:
description: Entity not found
content: {}

/owlOntology/{ontologyName}/instanceShortestPath:
post:
tags:
Expand Down Expand Up @@ -1508,6 +1509,42 @@ paths:
404:
description: Ontology not uploaded
content: {}
/owlOntology/{ontologyName}/queryGraph/visualize:
post:
tags:
- VisualizeSPARQL
summary: Convert SPARQL code to a QueryGraph
parameters:
- name: ontologyName
in: path
description: The name of the ontology
required: true
schema:
type: string
- name: version
in: query
description: The version of the ontology
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
description: The SPARQL code to be visualized
type: string
required: true
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/QueryGraph"
404:
description: Ontology not uploaded
content: {}

components:
schemas:
Highlights:
Expand Down

0 comments on commit fc4f48b

Please sign in to comment.