|
@@ -38,28 +38,44 @@ class QueryTemplate:
|
|
|
# TODO Rewrite this
|
|
|
reverse_prefix = {
|
|
|
"https://ontology.rys.app/dt/function/": "dtf",
|
|
|
+
|
|
|
"http://www.w3.org/2002/07/owl#": "owl",
|
|
|
"http://www.w3.org/1999/02/22-rdf-syntax-ns#": "rdf",
|
|
|
"http://www.w3.org/2001/XMLSchema#": "xsd",
|
|
|
"http://www.w3.org/2000/01/rdf-schema#": "rdfs",
|
|
|
- "http://ua.be/drivetrain/description/artifacts/artifacts#": "art",
|
|
|
- "http://ua.be/sdo2l/vocabulary/base/tabular#": "tabular",
|
|
|
"http://purl.org/dc/elements/1.1/": "dc",
|
|
|
- "http://ua.be/sdo2l/vocabulary/ftg#": "ftg",
|
|
|
- "http://ua.be/sdo2l/vocabulary/base#": "base",
|
|
|
"http://bipm.org/jcgm/vim4#": "vim4",
|
|
|
- "http://ua.be/sdo2l/vocabulary/component#": "comp",
|
|
|
- "http://ua.be/sdo2l/vocabulary/base/code#":"code",
|
|
|
- "http://ua.be/sdo2l/vocabulary/base/script#": "script",
|
|
|
- "http://ua.be/sdo2l/vocabulary/base/file#": "file",
|
|
|
"http://www.w3.org/2003/11/swrl#": "swrl",
|
|
|
- "http://ua.be/sdo2l/vocabulary/processtraces#":"traces",
|
|
|
- "http://ua.be/sdo2l/vocabulary/workflow#": "wf",
|
|
|
- "http://ua.be/sdo2l/vocabulary/base/text#": "text",
|
|
|
- "http://ua.be/sdo2l/vocabulary/federation#": "federation",
|
|
|
+
|
|
|
+ "http://ua.be/drivetrain/description/artifacts/artifacts#": "dart",
|
|
|
"http://ua.be/drivetrain/description/ftg#": "dftg",
|
|
|
+
|
|
|
+ "http://ua.be/sdo2l/vocabulary/base/acyclic#": "acyclic",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/base/base#": "base",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/file#": "file",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/ftg#": "ftg",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/processtraces#": "traces",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/shaclproperty#": "shaclproperty",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/system#": "system",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/violation#": "violation",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/code#": "code",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/component#": "component",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/cs_as#": "csas",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/dict#": "dict",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/drawio#": "drawio",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/object_diagram#": "object_diagram",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/pm#": "pm",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/requirement#": "requirement",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/richtext#": "richtext",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/script#": "script",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/tabular#": "tabular",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/text#": "text",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/traceability_model#": "traceability_model",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/formalisms/xopp#": "xopp",
|
|
|
+ "http://ua.be/sdo2l/vocabulary/federation#": "federation",
|
|
|
}
|
|
|
|
|
|
+
|
|
|
def perform_query(endpoint: str, query_text: str, post: bool = False) -> dict:
|
|
|
""""""
|
|
|
sparql = SPARQLWrapper(endpoint)
|