diff --git a/unsel_dashboard-iterate.ipynb b/unsel_dashboard-iterate.ipynb index f473c79f66911cdd145dc3b2b8a3f76a96a277e2..842e134da640a29164520eb9a1cc1549576e05a0 100644 --- a/unsel_dashboard-iterate.ipynb +++ b/unsel_dashboard-iterate.ipynb @@ -40,7 +40,7 @@ "#######################################################################################################\n", "shaclBase = '/opt/dashboards/tools/shacl-1.3.2/bin/'\n", "owl2vowlPath = '/opt/dashboards/tools/owl2vowl_0.3.7/owl2vowl.jar'\n", - "storeBase = '../store/CCTP-SRSA-IP-20210831/'\n", + "storeBase = '/opt/data/store/CCTP-SRSA-IP-20210831/'\n", "extractionGraph = '/opt/dashboards/tetras-lab-unl-demos/work_graph.ttl' # -- old --- extractionGraph = '/opt/dashboards/tetras-lab-unl-demos/extraction-data-9.ttl'\n", "workDir = 'work-data/'\n", "webvowlData = '/opt/webvowl'\n", @@ -702,8 +702,8 @@ "g = loadFactoids(storeBase)\n", "sparqlUpdate.setQuery('INSERT DATA {'+g.serialize(format='nt')+'}')\n", "sparqlLog = sparqlUpdate.query()\n", - "g.serialize(destination='/opt/dashboards/store/extraction2.ttl', format='turtle')\n", - "owl2vowl('/opt/dashboards/store/extraction2.ttl')\n", + "g.serialize(destination='/opt/data/store/extraction2.ttl', format='turtle')\n", + "owl2vowl('/opt/data/store/extraction2.ttl')\n", "\n", "g = loadSentences(storeBase)\n", "sparqlUpdate.setQuery('INSERT DATA {'+g.serialize(format='nt')+'}')\n", @@ -787,8 +787,8 @@ "# Fonctions pour la mise à jour globale du corpus (ne pas exécuter en mode \"Tableau de bord\")\n", "\n", "def updateAllFactoids():\n", - " dirList = ['/opt/dashboards/store/CCTP-SRSA-IP-20210831/SRSA-IP_STB_PHON_00100']\n", - " #dirList = glob('/opt/dashboards/store/CCTP-SRSA-IP-20210831/*')\n", + " dirList = ['/opt/data/store/CCTP-SRSA-IP-20210831/SRSA-IP_STB_PHON_00100']\n", + " #dirList = glob('/opt/data/store/CCTP-SRSA-IP-20210831/*')\n", " for directory in dirList:\n", " if directory.split('/')[-1] != '0_NONE':\n", " print(directory)\n", @@ -799,8 +799,8 @@ " \n", " \n", "def updateAllVerificationMessages():\n", - " #dirList = ['/opt/dashboards/store/CCTP-SRSA-IP-20210831/SRSA-IP_STB_PHON_00100']\n", - " dirList = glob('/opt/dashboards/store/CCTP-SRSA-IP-20210831/*')\n", + " #dirList = ['/opt/data/store/CCTP-SRSA-IP-20210831/SRSA-IP_STB_PHON_00100']\n", + " dirList = glob('/opt/data/store/CCTP-SRSA-IP-20210831/*')\n", " for directory in dirList:\n", " if directory.split('/')[-1] != '0_NONE':\n", " print(directory)\n", @@ -1060,7 +1060,7 @@ " pn.Row(\n", " #pn.pane.HTML('<a href=\"https://unsel.tetras-lab.io/webvowl#extraction\" target=\"_blank\"><button type=\"button\" class=\"btn btn-outline-secondary btn-sm\">Visualiser l\\'ontologie construite pour tout le corpus</button><a>'),\n", " #pn.pane.HTML('<a href=\"https://unsel.tetras-lab.io/static/webvowl_1.1.7/index.html#extraction_SRSA-IP_STB_PHON_00100\" target=\"_blank\"><button type=\"button\" class=\"btn btn-outline-secondary btn-sm\">Visualiser l\\'extraction de SRSA-IP_STB_PHON_00100</button><a>'), \n", - " pn.widgets.FileDownload(file='/opt/dashboards/static/extraction.ttl', embed=True)\n", + " pn.widgets.FileDownload(file='/opt/data/static/extraction.ttl', embed=True)\n", " ), title = \"Résultats sur le corpus\", width=pane_width+50, collapsed=True\n", " ), \n", ")\n" @@ -1069,16 +1069,10 @@ { "cell_type": "code", "execution_count": null, - "id": "e06f5381-6c2d-4762-bcb9-a914fb5889e3", + "id": "74000edf-ce92-412d-ae92-31b471486017", "metadata": {}, "outputs": [], - "source": [ - "#list = glob('/opt/dashboards/store/CCTP-SRSA-IP-20210831/*')\n", - "#for d in list : \n", - "# print(d)\n", - "# uuidStr = d.replace('/opt/dashboards/store/CCTP-SRSA-IP-20210831/','')\n", - "# createOnto(uuidStr)" - ] + "source": [] } ], "metadata": {