Skip to content
Snippets Groups Projects
Commit 271d5b99 authored by Robin Korfmann's avatar Robin Korfmann
Browse files

anuki wrapup

parent 41a5d3d9
Branches
No related tags found
No related merge requests found
......@@ -34,10 +34,10 @@ def getAQM(conversion=True):
#Load current backup of the AQM
aqm = rdflib.Graph(base="http://www.semanticweb.org/beyersdo/ontologies/2022/10/AQM#")
aqm.parse(os.path.join(str(os.getcwd()) + "\\application\\static\\data\\AQM.owl"))
aqm.parse(os.path.join(str(os.getcwd()),"application","static","data","AQM.owl"))
#Save the graph and convert to JSON for WebVOWL
aqm.serialize(destination=os.path.join(str(os.getcwd()) + "\\application\\static\\data\\YOUR_ONTOLOGY.TTL"), format="turtle")
aqm.serialize(destination=os.path.join(str(os.getcwd()),"application","static","data","YOUR_ONTOLOGY.TTL"), format="turtle")
if conversion:
convert()
else:
......@@ -58,7 +58,7 @@ def createAQMSubgraphForConsensus(source, conversion=True):
#Load current backup of the AQM and create empty subgraph
aqm = rdflib.Graph(base="http://www.semanticweb.org/beyersdo/ontologies/2022/10/AQM#")
aqm.parse(os.path.join(str(os.getcwd()) + "\\application\\static\\data\\AQM.owl"))
aqm.parse(os.path.join(str(os.getcwd()),"application","static","data","AQM.owl"))
subgraph = rdflib.Graph()
......@@ -159,7 +159,7 @@ def createAQMScopeComparision(source):
comparisonGraph = comparisonGraph + getAQM(conversion=False)
#Save the subgraph and convert to JSON for WebVOWL
comparisonGraph.serialize(destination=os.path.join(str(os.getcwd()) + "\\application\\static\\data\\YOUR_ONTOLOGY.TTL"), format="turtle")
comparisonGraph.serialize(destination=os.path.join(str(os.getcwd()),"application","static","data","YOUR_ONTOLOGY.TTL"), format="turtle")
convert()
......@@ -174,7 +174,7 @@ def createAQMSubgraphForMeasurement(source):
#Load current backup of the AQM and create empty subgraph
aqm = rdflib.Graph(base="http://www.semanticweb.org/beyersdo/ontologies/2022/10/AQM#")
aqm.parse(os.path.join(str(os.getcwd()) + "\\application\\static\\data\\AQM.owl"))
aqm.parse(os.path.join(str(os.getcwd()),"application","static","data","AQM.owl"))
#Iterate all quality attributes in subgraph
for s, p, o in subgraph.triples((None, RDFS.subClassOf, qa)):
......@@ -195,7 +195,7 @@ def createAQMSubgraphForMeasurement(source):
subgraph.add((s3, p3, o3))
#Save the subgraph and convert to JSON for WebVOWL
subgraph.serialize(destination=os.path.join(str(os.getcwd()) + "\\application\\static\\data\\YOUR_ONTOLOGY.TTL"), format="turtle")
subgraph.serialize(destination=os.path.join(str(os.getcwd()),"application","static","data","YOUR_ONTOLOGY.TTL"), format="turtle")
convert()
No preview for this file type
No preview for this file type
This diff is collapsed.
This diff is collapsed.
......@@ -62,7 +62,7 @@
</header>
<footer class="footer">
<div class="container">
<span class="text-muted footer-text">For more information on the AQM, check DOI:XXXX-XX-XX/XXXXX</span>
<span class="text-muted footer-text">For more information on the AQM, check DOI:10.1109/ICE/ITMC58018.2023.10332295</span>
</div>
</footer>
</body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment