Skip to content
Snippets Groups Projects
Commit 4d4153c8 authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

CTS update: fix bug about subclass not extracted (#36)

parent 8dc555f9
Branches
Tags
No related merge requests found
......@@ -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.
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment