{ "cells": [ { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "from rdflib import Graph\n", "import requests" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [], "source": [ "ttl = \"\"\"\n", "@prefix rdf: .\n", "@prefix rdfs: .\n", "@prefix data: .\n", "@prefix xsd: .\n", "@prefix facility: .\n", "@prefix process: .\n", "@prefix resource: .\n", "@prefix const: .\n", "@prefix time: .\n", "@prefix geo: .\n", "@prefix s4city: .\n", "@prefix saref: .\n", "@prefix cost: .\n", "@prefix interval: .\n", "\n", "data:Project_2b547f71-6e1c-4048-a61c-eb59c7e79976\n", " a facility:Project ;\n", " facility:isRelatedToProcess data:FE090C7C-7AEC-42FE-9452-AD0AA8643D28 .\n", "data:Process_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28\n", " a process:Process ;\n", " process:processID 'FE090C7C-7AEC-42FE-9452-AD0AA8643D28' ;\n", " process:hasName 'rst_advanced_sample_project_MSP2010.xml' ;\n", " process:hasCreationDate '2009-10-12T08:00:00'^^;\n", " process:hasCost cost:FE090C7C-7AEC-42FE-9452-AD0AA8643D28 ;\n", " process:isPlannedIn interval:FE090C7C-7AEC-42FE-9452-AD0AA8643D28 .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_0\n", " a process:Task ;\n", " process:taskId 'AD74C853-6199-4FE2-994B-9C5142AD8021' ;\n", " process:taskUid '0' ;\n", " process:hasName 'msproj11'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:AD74C853-6199-4FE2-994B-9C5142AD8021 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:AD74C853-6199-4FE2-994B-9C5142AD8021 .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_1\n", " a process:Task ;\n", " process:taskId '64518854-E3AA-4FF7-B8BC-33DB2326571C' ;\n", " process:taskUid '1' ;\n", " process:hasName 'RST Adv. Sample Project'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:64518854-E3AA-4FF7-B8BC-33DB2326571C ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:64518854-E3AA-4FF7-B8BC-33DB2326571C ;\n", " process:hasSubTask\n", " '1.1'^^ , \n", " '1.2'^^ , \n", " '1.3'^^ , \n", " '1.4'^^ . \n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_2\n", " a process:Task ;\n", " process:taskId '9A1B7091-2F36-4D2D-A334-769B82811DDA' ;\n", " process:taskUid '2' ;\n", " process:hasName 'Division 1'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:9A1B7091-2F36-4D2D-A334-769B82811DDA ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:9A1B7091-2F36-4D2D-A334-769B82811DDA ;\n", " process:hasSubTask\n", " '1.1.1'^^ , \n", " '1.1.2'^^ , \n", " '1.1.3'^^ , \n", " '1.1.4'^^ ; \n", " process:isSubTaskOf '1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_3\n", " a process:Task ;\n", " process:taskId 'CF6AC4D9-1D0E-4C59-AD75-B6BB862A82F7' ;\n", " process:taskUid '3' ;\n", " process:hasName 'Substructure'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:CF6AC4D9-1D0E-4C59-AD75-B6BB862A82F7 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:CF6AC4D9-1D0E-4C59-AD75-B6BB862A82F7 ;\n", " process:hasSubTask\n", " '1.1.1.1'^^ , \n", " '1.1.1.2'^^ ; \n", " process:isSubTaskOf '1.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_4\n", " a process:Task ;\n", " process:taskId 'F1AD89CD-6EE0-48F2-9945-F2C107F8504C' ;\n", " process:taskUid '4' ;\n", " process:hasName 'Piles and Caps'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:F1AD89CD-6EE0-48F2-9945-F2C107F8504C ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:F1AD89CD-6EE0-48F2-9945-F2C107F8504C ;\n", " process:isSubTaskOf '1.1.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_6\n", " a process:Task ;\n", " process:taskId 'D90EB083-CAB7-4953-9F1B-6EEB7D2CBB72' ;\n", " process:taskUid '6' ;\n", " process:hasName 'Floor Slab (Floor 0)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:D90EB083-CAB7-4953-9F1B-6EEB7D2CBB72 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:D90EB083-CAB7-4953-9F1B-6EEB7D2CBB72 ;\n", " process:isSubTaskOf '1.1.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_5\n", " a process:Task ;\n", " process:taskId '624D2AD5-1AFF-4113-A1A8-821AC8052FB2' ;\n", " process:taskUid '5' ;\n", " process:hasName 'Floor 1'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:624D2AD5-1AFF-4113-A1A8-821AC8052FB2 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:624D2AD5-1AFF-4113-A1A8-821AC8052FB2 ;\n", " process:hasSubTask\n", " '1.1.2.1'^^ , \n", " '1.1.2.2'^^ , \n", " '1.1.2.3'^^ ; \n", " process:isSubTaskOf '1.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_21\n", " a process:Task ;\n", " process:taskId 'AFF17DAF-93DB-4BCA-8E63-54CE59B47CDC' ;\n", " process:taskUid '21' ;\n", " process:hasName 'Emergency staircase shaft'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:AFF17DAF-93DB-4BCA-8E63-54CE59B47CDC ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:AFF17DAF-93DB-4BCA-8E63-54CE59B47CDC ;\n", " process:isSubTaskOf '1.1.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_7\n", " a process:Task ;\n", " process:taskId 'FDC56A31-6BE9-4FA3-8D9D-883390DFA35F' ;\n", " process:taskUid '7' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:FDC56A31-6BE9-4FA3-8D9D-883390DFA35F ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:FDC56A31-6BE9-4FA3-8D9D-883390DFA35F ;\n", " process:isSubTaskOf '1.1.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_8\n", " a process:Task ;\n", " process:taskId '6A5B26EF-D364-4F49-B168-BAF128551A9C' ;\n", " process:taskUid '8' ;\n", " process:hasName 'Beams and Floor Slab (Floor 1)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:6A5B26EF-D364-4F49-B168-BAF128551A9C ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:6A5B26EF-D364-4F49-B168-BAF128551A9C ;\n", " process:isSubTaskOf '1.1.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_17\n", " a process:Task ;\n", " process:taskId '4B0DDFAA-4E9E-4D98-90F9-23FF8BEC7901' ;\n", " process:taskUid '17' ;\n", " process:hasName 'Floor 2'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:4B0DDFAA-4E9E-4D98-90F9-23FF8BEC7901 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:4B0DDFAA-4E9E-4D98-90F9-23FF8BEC7901 ;\n", " process:hasSubTask\n", " '1.1.3.1'^^ , \n", " '1.1.3.2'^^ , \n", " '1.1.3.3'^^ ; \n", " process:isSubTaskOf '1.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_22\n", " a process:Task ;\n", " process:taskId '9D5F5E2F-5FBC-496A-88C4-17533696CD43' ;\n", " process:taskUid '22' ;\n", " process:hasName 'Emergency staircase shaft'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:9D5F5E2F-5FBC-496A-88C4-17533696CD43 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:9D5F5E2F-5FBC-496A-88C4-17533696CD43 ;\n", " process:isSubTaskOf '1.1.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_13\n", " a process:Task ;\n", " process:taskId '7B177D22-3E2D-43D1-8C72-AECBB16B1BB7' ;\n", " process:taskUid '13' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:7B177D22-3E2D-43D1-8C72-AECBB16B1BB7 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:7B177D22-3E2D-43D1-8C72-AECBB16B1BB7 ;\n", " process:isSubTaskOf '1.1.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_14\n", " a process:Task ;\n", " process:taskId '6FD03B61-F8D8-49B6-9D75-CF508FB33862' ;\n", " process:taskUid '14' ;\n", " process:hasName 'Beams and Floor Slab (Floor 2)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:6FD03B61-F8D8-49B6-9D75-CF508FB33862 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:6FD03B61-F8D8-49B6-9D75-CF508FB33862 ;\n", " process:isSubTaskOf '1.1.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_18\n", " a process:Task ;\n", " process:taskId '049F7A6B-3B39-46E9-8B51-5DD5173CDD63' ;\n", " process:taskUid '18' ;\n", " process:hasName 'Floor 3'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:049F7A6B-3B39-46E9-8B51-5DD5173CDD63 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:049F7A6B-3B39-46E9-8B51-5DD5173CDD63 ;\n", " process:hasSubTask\n", " '1.1.4.1'^^ , \n", " '1.1.4.2'^^ , \n", " '1.1.4.3'^^ ; \n", " process:isSubTaskOf '1.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_10\n", " a process:Task ;\n", " process:taskId '2AEF0F45-3DAC-42E0-8B3B-6C9A64808289' ;\n", " process:taskUid '10' ;\n", " process:hasName 'Emergency staircase shaft'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:2AEF0F45-3DAC-42E0-8B3B-6C9A64808289 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:2AEF0F45-3DAC-42E0-8B3B-6C9A64808289 ;\n", " process:isSubTaskOf '1.1.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_15\n", " a process:Task ;\n", " process:taskId '930E6016-055C-445C-81EB-D976A9173B5C' ;\n", " process:taskUid '15' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:930E6016-055C-445C-81EB-D976A9173B5C ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:930E6016-055C-445C-81EB-D976A9173B5C ;\n", " process:isSubTaskOf '1.1.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_16\n", " a process:Task ;\n", " process:taskId '2C44CAF0-16F4-410C-B706-393A91FCB37C' ;\n", " process:taskUid '16' ;\n", " process:hasName 'Beams and Roof Slab'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:2C44CAF0-16F4-410C-B706-393A91FCB37C ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:2C44CAF0-16F4-410C-B706-393A91FCB37C ;\n", " process:isSubTaskOf '1.1.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_53\n", " a process:Task ;\n", " process:taskId '1AD6F0EB-0CC6-429E-BD3B-39093FCE1805' ;\n", " process:taskUid '53' ;\n", " process:hasName 'Division 2'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:1AD6F0EB-0CC6-429E-BD3B-39093FCE1805 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:1AD6F0EB-0CC6-429E-BD3B-39093FCE1805 ;\n", " process:hasSubTask\n", " '1.2.1'^^ , \n", " '1.2.2'^^ , \n", " '1.2.3'^^ , \n", " '1.2.4'^^ ; \n", " process:isSubTaskOf '1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_54\n", " a process:Task ;\n", " process:taskId 'F2DD1089-605E-4F9E-9069-EC330E112F1A' ;\n", " process:taskUid '54' ;\n", " process:hasName 'Substructure'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:F2DD1089-605E-4F9E-9069-EC330E112F1A ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:F2DD1089-605E-4F9E-9069-EC330E112F1A ;\n", " process:hasSubTask\n", " '1.2.1.1'^^ , \n", " '1.2.1.2'^^ ; \n", " process:isSubTaskOf '1.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_55\n", " a process:Task ;\n", " process:taskId '40A8568C-0C67-4F63-A735-658CD6C7FA95' ;\n", " process:taskUid '55' ;\n", " process:hasName 'Piles and Caps'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:40A8568C-0C67-4F63-A735-658CD6C7FA95 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:40A8568C-0C67-4F63-A735-658CD6C7FA95 ;\n", " process:isSubTaskOf '1.2.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_56\n", " a process:Task ;\n", " process:taskId 'AA76F034-3C44-4E76-B230-BEAEC3D19424' ;\n", " process:taskUid '56' ;\n", " process:hasName 'Floor Slab (Floor 0)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:AA76F034-3C44-4E76-B230-BEAEC3D19424 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:AA76F034-3C44-4E76-B230-BEAEC3D19424 ;\n", " process:isSubTaskOf '1.2.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_57\n", " a process:Task ;\n", " process:taskId '22AB8911-105F-41E3-A61B-DF13BFB9EEED' ;\n", " process:taskUid '57' ;\n", " process:hasName 'Floor 1'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:22AB8911-105F-41E3-A61B-DF13BFB9EEED ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:22AB8911-105F-41E3-A61B-DF13BFB9EEED ;\n", " process:hasSubTask\n", " '1.2.2.1'^^ , \n", " '1.2.2.2'^^ ; \n", " process:isSubTaskOf '1.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_59\n", " a process:Task ;\n", " process:taskId '4DAD3CF8-C28D-4D7D-B6FF-CEBFAD0C01A9' ;\n", " process:taskUid '59' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:4DAD3CF8-C28D-4D7D-B6FF-CEBFAD0C01A9 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:4DAD3CF8-C28D-4D7D-B6FF-CEBFAD0C01A9 ;\n", " process:isSubTaskOf '1.2.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_60\n", " a process:Task ;\n", " process:taskId '8B9D7131-F54A-490D-9855-54AFBF323B8B' ;\n", " process:taskUid '60' ;\n", " process:hasName 'Beams and Floor Slab (Floor 1)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:8B9D7131-F54A-490D-9855-54AFBF323B8B ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:8B9D7131-F54A-490D-9855-54AFBF323B8B ;\n", " process:isSubTaskOf '1.2.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_61\n", " a process:Task ;\n", " process:taskId '16F38803-BA42-41B5-BF4F-98726D5224EF' ;\n", " process:taskUid '61' ;\n", " process:hasName 'Floor 2'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:16F38803-BA42-41B5-BF4F-98726D5224EF ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:16F38803-BA42-41B5-BF4F-98726D5224EF ;\n", " process:hasSubTask\n", " '1.2.3.1'^^ , \n", " '1.2.3.2'^^ ; \n", " process:isSubTaskOf '1.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_63\n", " a process:Task ;\n", " process:taskId 'A8BF0BB2-1A1F-4DA6-8F0C-5136C5EE5982' ;\n", " process:taskUid '63' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:A8BF0BB2-1A1F-4DA6-8F0C-5136C5EE5982 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:A8BF0BB2-1A1F-4DA6-8F0C-5136C5EE5982 ;\n", " process:isSubTaskOf '1.2.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_64\n", " a process:Task ;\n", " process:taskId 'DD73C77D-1606-4377-AA74-6039D25E40F1' ;\n", " process:taskUid '64' ;\n", " process:hasName 'Beams and Floor Slab (Floor 2)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:DD73C77D-1606-4377-AA74-6039D25E40F1 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:DD73C77D-1606-4377-AA74-6039D25E40F1 ;\n", " process:isSubTaskOf '1.2.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_65\n", " a process:Task ;\n", " process:taskId 'E4ADD63C-5C72-4008-B75E-915A8B5EF22D' ;\n", " process:taskUid '65' ;\n", " process:hasName 'Floor 3'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:E4ADD63C-5C72-4008-B75E-915A8B5EF22D ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:E4ADD63C-5C72-4008-B75E-915A8B5EF22D ;\n", " process:hasSubTask\n", " '1.2.4.1'^^ , \n", " '1.2.4.2'^^ ; \n", " process:isSubTaskOf '1.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_67\n", " a process:Task ;\n", " process:taskId 'DB10A3F7-B46B-4C15-9254-84F10F6D3D97' ;\n", " process:taskUid '67' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:DB10A3F7-B46B-4C15-9254-84F10F6D3D97 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:DB10A3F7-B46B-4C15-9254-84F10F6D3D97 ;\n", " process:isSubTaskOf '1.2.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_68\n", " a process:Task ;\n", " process:taskId '703F1C6F-C988-4ACC-8387-6E485E3A4009' ;\n", " process:taskUid '68' ;\n", " process:hasName 'Beams and Roof Slab'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:703F1C6F-C988-4ACC-8387-6E485E3A4009 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:703F1C6F-C988-4ACC-8387-6E485E3A4009 ;\n", " process:isSubTaskOf '1.2.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_104\n", " a process:Task ;\n", " process:taskId '9991AE72-90B8-4B27-A192-BD48FA426A44' ;\n", " process:taskUid '104' ;\n", " process:hasName 'Division 3'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:9991AE72-90B8-4B27-A192-BD48FA426A44 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:9991AE72-90B8-4B27-A192-BD48FA426A44 ;\n", " process:hasSubTask\n", " '1.3.1'^^ , \n", " '1.3.2'^^ , \n", " '1.3.3'^^ , \n", " '1.3.4'^^ ; \n", " process:isSubTaskOf '1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_105\n", " a process:Task ;\n", " process:taskId '0B6900AE-DE66-420C-ABD2-FEFA862FC227' ;\n", " process:taskUid '105' ;\n", " process:hasName 'Substructure'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:0B6900AE-DE66-420C-ABD2-FEFA862FC227 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:0B6900AE-DE66-420C-ABD2-FEFA862FC227 ;\n", " process:hasSubTask\n", " '1.3.1.1'^^ , \n", " '1.3.1.2'^^ ; \n", " process:isSubTaskOf '1.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_106\n", " a process:Task ;\n", " process:taskId 'C3728CA5-B088-42FB-8860-CEB5BD9329B2' ;\n", " process:taskUid '106' ;\n", " process:hasName 'Piles and Caps'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:C3728CA5-B088-42FB-8860-CEB5BD9329B2 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:C3728CA5-B088-42FB-8860-CEB5BD9329B2 ;\n", " process:isSubTaskOf '1.3.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_107\n", " a process:Task ;\n", " process:taskId 'CE767D56-8854-481A-A558-3D97C8906BE7' ;\n", " process:taskUid '107' ;\n", " process:hasName 'Floor Slab (Floor 0)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:CE767D56-8854-481A-A558-3D97C8906BE7 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:CE767D56-8854-481A-A558-3D97C8906BE7 ;\n", " process:isSubTaskOf '1.3.1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_108\n", " a process:Task ;\n", " process:taskId 'B6D91E09-2271-4C90-BF0A-5245C1F0E486' ;\n", " process:taskUid '108' ;\n", " process:hasName 'Floor 1'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:B6D91E09-2271-4C90-BF0A-5245C1F0E486 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:B6D91E09-2271-4C90-BF0A-5245C1F0E486 ;\n", " process:hasSubTask\n", " '1.3.2.1'^^ , \n", " '1.3.2.2'^^ , \n", " '1.3.2.3'^^ ; \n", " process:isSubTaskOf '1.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_109\n", " a process:Task ;\n", " process:taskId '8B2EC23F-4C4A-4E35-9855-A4E51D940C08' ;\n", " process:taskUid '109' ;\n", " process:hasName 'Emergency staircase shaft'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:8B2EC23F-4C4A-4E35-9855-A4E51D940C08 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:8B2EC23F-4C4A-4E35-9855-A4E51D940C08 ;\n", " process:isSubTaskOf '1.3.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_110\n", " a process:Task ;\n", " process:taskId '302EA137-4122-45ED-A5BB-B254C7DF3153' ;\n", " process:taskUid '110' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:302EA137-4122-45ED-A5BB-B254C7DF3153 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:302EA137-4122-45ED-A5BB-B254C7DF3153 ;\n", " process:isSubTaskOf '1.3.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_111\n", " a process:Task ;\n", " process:taskId '10363876-EDE4-460D-B2CC-2C51CAE1E159' ;\n", " process:taskUid '111' ;\n", " process:hasName 'Beams and Floor Slab (Floor 1)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:10363876-EDE4-460D-B2CC-2C51CAE1E159 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:10363876-EDE4-460D-B2CC-2C51CAE1E159 ;\n", " process:isSubTaskOf '1.3.2'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_112\n", " a process:Task ;\n", " process:taskId 'AC8CC3E1-078E-4C51-BC45-16EB491F307F' ;\n", " process:taskUid '112' ;\n", " process:hasName 'Floor 2'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:AC8CC3E1-078E-4C51-BC45-16EB491F307F ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:AC8CC3E1-078E-4C51-BC45-16EB491F307F ;\n", " process:hasSubTask\n", " '1.3.3.1'^^ , \n", " '1.3.3.2'^^ , \n", " '1.3.3.3'^^ ; \n", " process:isSubTaskOf '1.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_113\n", " a process:Task ;\n", " process:taskId '03E91AD5-CE86-42D1-916A-9B1F5C3FB735' ;\n", " process:taskUid '113' ;\n", " process:hasName 'Emergency staircase shaft'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:03E91AD5-CE86-42D1-916A-9B1F5C3FB735 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:03E91AD5-CE86-42D1-916A-9B1F5C3FB735 ;\n", " process:isSubTaskOf '1.3.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_114\n", " a process:Task ;\n", " process:taskId 'ADCF6CDB-B73C-4FEF-A828-947226903359' ;\n", " process:taskUid '114' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:ADCF6CDB-B73C-4FEF-A828-947226903359 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:ADCF6CDB-B73C-4FEF-A828-947226903359 ;\n", " process:isSubTaskOf '1.3.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_115\n", " a process:Task ;\n", " process:taskId '26A28CF8-7DE9-4E2E-AC8B-415672A997BF' ;\n", " process:taskUid '115' ;\n", " process:hasName 'Beams and Floor Slab (Floor 2)'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:26A28CF8-7DE9-4E2E-AC8B-415672A997BF ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:26A28CF8-7DE9-4E2E-AC8B-415672A997BF ;\n", " process:isSubTaskOf '1.3.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_116\n", " a process:Task ;\n", " process:taskId 'A79ECD8B-1175-48C4-9C35-2EEF3E7470C0' ;\n", " process:taskUid '116' ;\n", " process:hasName 'Floor 3'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:A79ECD8B-1175-48C4-9C35-2EEF3E7470C0 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:A79ECD8B-1175-48C4-9C35-2EEF3E7470C0 ;\n", " process:hasSubTask\n", " '1.3.4.1'^^ , \n", " '1.3.4.2'^^ , \n", " '1.3.4.3'^^ ; \n", " process:isSubTaskOf '1.3'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_117\n", " a process:Task ;\n", " process:taskId '480ACC2C-BD92-4C0C-B230-901AA90FDFCF' ;\n", " process:taskUid '117' ;\n", " process:hasName 'Emergency staircase shaft'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:480ACC2C-BD92-4C0C-B230-901AA90FDFCF ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:480ACC2C-BD92-4C0C-B230-901AA90FDFCF ;\n", " process:isSubTaskOf '1.3.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_118\n", " a process:Task ;\n", " process:taskId '10762CA1-18B5-45CF-870B-1D7D07B4FE5A' ;\n", " process:taskUid '118' ;\n", " process:hasName 'Concrete Rd Columns'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:10762CA1-18B5-45CF-870B-1D7D07B4FE5A ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:10762CA1-18B5-45CF-870B-1D7D07B4FE5A ;\n", " process:isSubTaskOf '1.3.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_119\n", " a process:Task ;\n", " process:taskId '95AD44A2-E64E-45E7-A6A3-0ED08EAB90C8' ;\n", " process:taskUid '119' ;\n", " process:hasName 'Beams and Roof Slab'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:95AD44A2-E64E-45E7-A6A3-0ED08EAB90C8 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:95AD44A2-E64E-45E7-A6A3-0ED08EAB90C8 ;\n", " process:isSubTaskOf '1.3.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_72\n", " a process:Task ;\n", " process:taskId '9CD9C2F1-95D9-49A7-B1BB-ACADFBE6A7E6' ;\n", " process:taskUid '72' ;\n", " process:hasName 'Entrance canopy'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:9CD9C2F1-95D9-49A7-B1BB-ACADFBE6A7E6 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:9CD9C2F1-95D9-49A7-B1BB-ACADFBE6A7E6 ;\n", " process:hasSubTask\n", " '1.4.1'^^ , \n", " '1.4.2'^^ , \n", " '1.4.3'^^ ; \n", " process:isSubTaskOf '1'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_74\n", " a process:Task ;\n", " process:taskId '043DD0CE-E309-491D-8DF6-6796BC4E5957' ;\n", " process:taskUid '74' ;\n", " process:hasName 'Round foundations'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:043DD0CE-E309-491D-8DF6-6796BC4E5957 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:043DD0CE-E309-491D-8DF6-6796BC4E5957 ;\n", " process:isSubTaskOf '1.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_76\n", " a process:Task ;\n", " process:taskId '6079F6A4-A131-4B6E-8454-6DCF07764872' ;\n", " process:taskUid '76' ;\n", " process:hasName 'Steel'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:6079F6A4-A131-4B6E-8454-6DCF07764872 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:6079F6A4-A131-4B6E-8454-6DCF07764872 ;\n", " process:isSubTaskOf '1.4'^^ .\n", "data:Task_2b547f71-6e1c-4048-a61c-eb59c7e79976_FE090C7C-7AEC-42FE-9452-AD0AA8643D28_206\n", " a process:Task ;\n", " process:taskId '5BDC7227-D17F-4F1D-B3CB-3F036777D2D0' ;\n", " process:taskUid '206' ;\n", " process:hasName 'Concrete Roof'^^ ;\n", " process:hasCreationDate ''^^ ;\n", " process:isPlannedIn interval:5BDC7227-D17F-4F1D-B3CB-3F036777D2D0 ;\n", " process:hasPriority '500'^^ ;\n", " process:hasProgress 'PT0H0M0S'^^ ;\n", " process:hasStatus 'PT0H0M0S'^^ ;\n", " process:hasCost cost:5BDC7227-D17F-4F1D-B3CB-3F036777D2D0 ;\n", " process:isSubTaskOf '1.4'^^ .\n", "\n", "\n", "\"\"\"" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [], "source": [ "payload = ttl\n", "headers = {\n", " 'Content-Type': 'text/plain'\n", "}\n", "response = requests.request(\"POST\", \"https://validation.cogito.iot.linkeddata.es/api/process?format=turtle\", headers=headers, data=payload)\n", "graph = response.text" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "data": { "text/plain": [ ")>" ] }, "execution_count": 28, "metadata": {}, "output_type": "execute_result" } ], "source": [ "g = Graph()\n", "g.parse(data=graph, format=\"turtle\")" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "false\n" ] } ], "source": [ "for row in g.query(\"select ?o where { ?s ?o . }\"):\n", " print(row.o)" ] }, { "cell_type": "code", "execution_count": 48, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\"project_id\": \"1234\", \"file_id\": null, \"error\": \"Error message\"}\n" ] } ], "source": [ "import json\n", "url = \"http://localhost:8080/project/1234/wrapper_error\"\n", "error_dict = {\n", " \"project_id\": \"1234\",\n", " \"file_id\": None,\n", " \"error\": \"Error message\"\n", " }\n", "payload = json.dumps(error_dict)\n", "headers = {\n", " 'Content-Type': 'application/json'\n", " }\n", "try:\n", " response = requests.request(\"POST\", url, headers=headers, data=payload)\n", " print(response.text)\n", "except:\n", " \"Error sending error to the Thing Manager\"\n", "pass" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3.10.2 64-bit ('3.10.2')", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.2" }, "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "a9c44c8ff930b067c6bc3f134a348d3cb9f19f01dfb46c39e0c18c228169b636" } } }, "nbformat": 4, "nbformat_minor": 2 }