Skip to content

Commit

Permalink
add dragons graph content generation zip
Browse files Browse the repository at this point in the history
  • Loading branch information
YANG-DB committed Mar 30, 2022
1 parent 7990709 commit d0aa2b2
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"application/xml",
"image/*",
"text/csv"

],
"paths": {
"/": {
Expand Down Expand Up @@ -65,7 +64,6 @@
}
}
},

"/internal/version": {
"get": {
"tags": [
Expand Down Expand Up @@ -96,7 +94,6 @@
}
}
},

"/catalog/ontology": {
"post": {
"tags": [
Expand Down Expand Up @@ -229,14 +226,13 @@
}
}
},

"/graphql/ontology/{id}": {
"post": {
"tags": [
"catalog"
],
"summary": "graphQL IDL into Ontology",
"description": "Transform a graphQL IDL into V1 Ontology - see https://graphql.org/learn/schema/" ,
"description": "Transform a graphQL IDL into V1 Ontology - see https://graphql.org/learn/schema/",
"parameters": [
{
"name": "id",
Expand Down Expand Up @@ -270,7 +266,7 @@
"catalog"
],
"summary": "OWL IDL into Ontology",
"description": "Transform a OWL IDL into V1 Ontology - see https://www.w3.org/TR/owl-features/" ,
"description": "Transform a OWL IDL into V1 Ontology - see https://www.w3.org/TR/owl-features/",
"parameters": [
{
"name": "id",
Expand Down Expand Up @@ -304,7 +300,7 @@
"catalog"
],
"summary": "SQL DDL into Ontology",
"description": "Transform a SQL DDL into V1 Ontology " ,
"description": "Transform a SQL DDL into V1 Ontology ",
"parameters": [
{
"name": "id",
Expand Down Expand Up @@ -332,7 +328,6 @@
}
}
},

"/query/graph/api/getVertex": {
"get": {
"tags": [
Expand Down Expand Up @@ -413,7 +408,6 @@
}
}
},

"/query/graph/api/findPath": {
"get": {
"tags": [
Expand Down Expand Up @@ -468,7 +462,6 @@
"required": true,
"type": "integer"
}

],
"responses": {
"200": {
Expand All @@ -480,7 +473,6 @@
}
}
},

"/query/cypher": {
"post": {
"tags": [
Expand Down Expand Up @@ -529,7 +521,13 @@
"in": "query",
"description": "cursorType",
"required": false,
"enum": ["graph","csv","forwardPaths","projection","count"]
"enum": [
"graph",
"csv",
"forwardPaths",
"projection",
"count"
]
},
{
"name": "cypher",
Expand Down Expand Up @@ -557,7 +555,6 @@
}
}
},

"/query/graphQL": {
"post": {
"tags": [
Expand Down Expand Up @@ -606,7 +603,11 @@
"in": "query",
"description": "cursorType",
"required": false,
"enum": ["graph","csv","forwardPaths"]
"enum": [
"graph",
"csv",
"forwardPaths"
]
},
{
"name": "graphQL",
Expand Down Expand Up @@ -634,7 +635,6 @@
}
}
},

"/query/sparql": {
"post": {
"tags": [
Expand Down Expand Up @@ -683,7 +683,11 @@
"in": "query",
"description": "cursorType",
"required": false,
"enum": ["graph","csv","forwardPaths"]
"enum": [
"graph",
"csv",
"forwardPaths"
]
},
{
"name": "sparql",
Expand Down Expand Up @@ -711,7 +715,6 @@
}
}
},

"/query/v1": {
"post": {
"tags": [
Expand Down Expand Up @@ -844,7 +847,11 @@
"in": "query",
"description": "cursorType",
"required": false,
"enum": ["graph","csv","forwardPaths"]
"enum": [
"graph",
"csv",
"forwardPaths"
]
},
{
"in": "body",
Expand Down Expand Up @@ -887,7 +894,6 @@
}
}
},

"/query/{id}": {
"get": {
"tags": [
Expand Down Expand Up @@ -1144,41 +1150,41 @@
}
},
"/query/{id}/cursor/{cursorId}": {
"get": {
"tags": [
"cursor"
],
"summary": "Fetch cursor info by ID",
"description": "Fetch cursor info by ID",
"parameters": [
{
"name": "id",
"in": "path",
"description": "query ID.",
"required": true,
"type": "string"
},
{
"name": "cursorId",
"in": "path",
"description": "cursor ID.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Returns <code>200</code> with a single query info or <code>404</code>",
"schema": {
"$ref": "#/definitions/QueryInfo"
}
},
"404": {
"description": "Not Found"
"get": {
"tags": [
"cursor"
],
"summary": "Fetch cursor info by ID",
"description": "Fetch cursor info by ID",
"parameters": [
{
"name": "id",
"in": "path",
"description": "query ID.",
"required": true,
"type": "string"
},
{
"name": "cursorId",
"in": "path",
"description": "cursor ID.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Returns <code>200</code> with a single query info or <code>404</code>",
"schema": {
"$ref": "#/definitions/QueryInfo"
}
},
"404": {
"description": "Not Found"
}
},
"delete": {
}
},
"delete": {
"tags": [
"cursor"
],
Expand Down Expand Up @@ -1459,14 +1465,22 @@
}
}
},

"/dashboard/entities": {
"/dashboard/entities/{ontology}": {
"get": {
"tags": [
"dashboard"
],
"summary": "Show summery of DB existing entities",
"description": "summery of DB entities",
"parameters": [
{
"name": "ontology",
"in": "path",
"description": "ontology.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Returns <code>200</code> summery of db elements created (entities / properties) or <code>404</code>"
Expand Down Expand Up @@ -1494,13 +1508,22 @@
}
}
},
"/dashboard/created": {
"/dashboard/created/{ontology}": {
"get": {
"tags": [
"dashboard"
],
"summary": "Show summery of created DB elements by creation time ",
"description": "summery of time bases created DB elements ",
"parameters": [
{
"name": "ontology",
"in": "path",
"description": "ontology.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Returns <code>200</code> Show summery of created DB elements by creation time or <code>404</code>"
Expand Down Expand Up @@ -1528,7 +1551,6 @@
}
}
},

"/load/ontology/{id}/indices": {
"get": {
"tags": [
Expand Down Expand Up @@ -1729,7 +1751,6 @@
}
}
},

"/load/ontology/{id}/graph/upload": {
"post": {
"tags": [
Expand Down Expand Up @@ -1833,7 +1854,6 @@
}
}
},

"definitions": {
"SequenceNames": {
"type": "string",
Expand Down Expand Up @@ -1951,8 +1971,8 @@
"id": "1",
"name": "Q1",
"ontology": "Dragons",
"query": "Match (p1:Person)-[o:Own]->(d2:Dragon ) return *",
"type":"cypher"
"query": "Match (p1:Person)-[o:Own]->(d2:Dragon ) return *",
"type": "cypher"
}
},
"SparqlQueryRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public DashboardControllerRegistrar() {
//region AppControllerRegistrarBase Implementation
@Override
public void register(Jooby app, AppUrlSupplier appUrlSupplier) {
app.get("/fuse/dashboard/entities/:id",
req -> Results.with(this.getController(app).graphElementCount(req.param("id").value())));
app.get("/fuse/dashboard/created/:id",
req -> Results.with(this.getController(app).graphElementCreatedOverTime(req.param("id").value())));
app.get("/fuse/dashboard/entities/:ontology",
req -> Results.with(this.getController(app).graphElementCount(req.param("ontology").value())));
app.get("/fuse/dashboard/created/:ontology",
req -> Results.with(this.getController(app).graphElementCreatedOverTime(req.param("ontology").value())));
app.get("/fuse/dashboard/count",
req -> Results.with(this.getController(app).cursorCount()));
}
Expand Down
Loading

0 comments on commit d0aa2b2

Please sign in to comment.