diff --git a/config/transduction-schemes.ttl b/config/transduction-schemes.ttl index 2999954d85c4f240e7b77ec3c2f44e7071c9cb33..00fa0218cc6dd4be2c391c2da23db7ef3a881cc8 100644 --- a/config/transduction-schemes.ttl +++ b/config/transduction-schemes.ttl @@ -273,6 +273,10 @@ cts:batch_execution sh:rule cts:update-net-extension-rules ; sh:rule cts:update-preprocessing-rules ; . +cts:batch_execution_1 + rdf:type cts:batch_execution ; + rdfs:label "batch execution 1" ; +. cts:bypass-reification rdf:type sh:SPARQLRule ; sh:construct """PREFIX owl: <http://www.w3.org/2002/07/owl#> @@ -1045,7 +1049,7 @@ WHERE { ?net1 net:has_structure ?req. ?net1 net:has_parent ?parentObject. ?parentObject net:has_class_uri ?parentUri. - ?parentObject net:has_instance_uri ?instanceUri. + # -- old --- ?parentObject net:has_instance_uri ?instanceUri. ?net1 net:has_item ?compositeObject. ?compositeObject net:has_class_uri ?newClassUri. ?compositeObject net:has_concept ?compositeConcept. diff --git a/prepare_work_data.py b/prepare_work_data.py index 6b546ed4c65d8e3e9c2fbed1d84b0f0e3ad4a8b5..9e441f86a5619d4f96abce8792996f833552e692 100644 --- a/prepare_work_data.py +++ b/prepare_work_data.py @@ -36,12 +36,16 @@ cts_file = "transduction-schemes.ttl" c_param_file = "config-parameters.ttl" # Dev Tests +corpus_40 = "CCTP-SRSA-IP-20210831/" base_uri = "https://unsel.tetras-libre.fr/tenet/working" req_100 = "CCTP-SRSA-IP-20210831-R100/" req_200 = "CCTP-SRSA-IP-20210831-R200/" req_300 = "CCTP-SRSA-IP-20210831-R300/" req_1100 = "CCTP-SRSA-IP-20210831-R1100/" -corpus_40 = "CCTP-SRSA-IP-20210831/" +corpus_comp = "COMP/" +req_f1 = "COMP/F1/" +req_34 = "COMP/34/" +req_50 = "COMP/50/" corpus_ERTMS = "ERTMS/" corpus_PEV = "PEV-RSE-Approach/" @@ -208,13 +212,22 @@ def run(corpus, source_ref, target_ref): #============================================================================== if __name__ == '__main__': + target_ref = "system" #target_ref = "environment" - run(req_100, 'R100f', target_ref) - run(req_200, 'R200f', target_ref) - run(req_300, 'R300f', target_ref) - run(req_1100, 'R1100f', target_ref) - run(corpus_40, 'Corpus-CCTP-40f', target_ref) + + run(corpus_comp, 'COMP-01', target_ref) + run(req_f1, 'C-F1', target_ref) + run(req_50, 'C-50', target_ref) + run(req_34, 'C-34', target_ref) + + #run(req_100, 'R100f', target_ref) + #run(req_200, 'R200f', target_ref) + #run(req_300, 'R300f', target_ref) + #run(req_1100, 'R1100f', target_ref) + + #run(corpus_40, 'Corpus-CCTP-40f', target_ref) + #run(corpus_ERTMS, 'Corpus-ERTMS', target_ref) #run(corpus_PEV, 'Corpus-PEV', target_ref)