diff --git a/structure/cts/amr_ctr/transduction/atomic_extraction.py b/structure/cts/amr_ctr/transduction/atomic_extraction.py index 012b02e2e80e1ec6e594d6f56396d48e7fd7b343..68b3e8d9b0615881dbde5d96f4abb5647f576d67 100644 --- a/structure/cts/amr_ctr/transduction/atomic_extraction.py +++ b/structure/cts/amr_ctr/transduction/atomic_extraction.py @@ -274,132 +274,136 @@ rule_set['create-atom-property-net-1'] = { """ } -rule_set['create-atom-property-net-2'] = { - 'label': "create-atom-property-net-2", - 'comment': ("Create Property Net from AMR Predicat Concept: ", - " with variable corresponding to a negative polarity value "), - 'construction': """ - # -- New Property Net - ?newNet a net:Atom_Property_Net ; - net:isCoreRoleLinked true ; - net:hasStructure ?sentenceRef ; - net:coverBaseNode ?baseLeaf ; - net:targetArgumentNode ?argLeaf ; - net:hasPropertyType owl:ObjectProperty ; - net:hasPropertyName ?propertyName ; - net:hasPropertyName01 ?propertyName01 ; - net:hasPropertyName10 ?propertyName10 ; - net:hasPropertyName12 ?propertyName12. +# -- old --- +# rule_set['create-atom-property-net-2'] = { +# 'label': "create-atom-property-net-2", +# 'comment': ("Create Property Net from AMR Predicat Concept: ", +# " with variable corresponding to a negative polarity value "), +# 'construction': """ +# # -- New Property Net +# ?newNet a net:Atom_Property_Net ; +# net:isCoreRoleLinked true ; +# net:hasStructure ?sentenceRef ; +# net:coverBaseNode ?baseLeaf ; +# net:targetArgumentNode ?argLeaf ; +# net:hasPropertyType owl:ObjectProperty ; +# net:hasPropertyName ?propertyName ; +# net:hasPropertyName01 ?propertyName01 ; +# net:hasPropertyName10 ?propertyName10 ; +# net:hasPropertyName12 ?propertyName12. - # -- Propagation of relations (from nodes to nets) - ?inRelationRole a net:Relation. - ?inNet ?inRelationRole ?newNet. - ?outRelationRole a net:Relation. - ?newNet ?outRelationRole ?outNet. - """, - 'clause': """ - # -- Identify property covering single leaf - ?baseLeaf a amr:AMR_Leaf ; - amr:hasConcept ?concept ; - amr:hasVariable ?variable. - ?variable amr:label ?varLabel ; - amr:polarity ?polarityValue. - ?polarityValue rdfs:label 'negative'. - ?concept rdfs:subClassOf amr:AMR_Predicat_Concept ; - amr:label ?predicateLabel. - OPTIONAL {?baseLeaf ?relation ?argLeaf. - ?relation amr:hasAmrRole ?someArgRole.} +# # -- Propagation of relations (from nodes to nets) +# ?inRelationRole a net:Relation. +# ?inNet ?inRelationRole ?newNet. +# ?outRelationRole a net:Relation. +# ?newNet ?outRelationRole ?outNet. +# """, +# 'clause': """ +# # -- Identify property covering single leaf +# ?baseLeaf a amr:AMR_Leaf ; +# amr:hasConcept ?concept ; +# amr:hasVariable ?variable. +# ?variable amr:label ?varLabel ; +# amr:polarity ?polarityValue. +# ?polarityValue rdfs:label 'negative'. +# ?concept rdfs:subClassOf amr:AMR_Predicat_Concept ; +# amr:label ?predicateLabel. +# OPTIONAL {?baseLeaf ?relation ?argLeaf. +# ?relation amr:hasAmrRole ?someArgRole.} - # -- Identify structure - ?root a amr:AMR_Root ; - amr:hasSentenceID ?sentenceRef. +# # -- Identify structure +# ?root a amr:AMR_Root ; +# amr:hasSentenceID ?sentenceRef. - # -- Identify inbound relations linked to the base leaf (for propagation) - OPTIONAL {?inNet a [rdfs:subClassOf* net:Net] ; - net:coverBaseNode ?inLeaf. - ?inLeaf ?inRelationEdge ?baseLeaf. - ?inRelationEdge amr:hasAmrRole ?inRelationRole.} +# # -- Identify inbound relations linked to the base leaf (for propagation) +# OPTIONAL {?inNet a [rdfs:subClassOf* net:Net] ; +# net:coverBaseNode ?inLeaf. +# ?inLeaf ?inRelationEdge ?baseLeaf. +# ?inRelationEdge amr:hasAmrRole ?inRelationRole.} - # -- Identify outgoing relations linked to the base leaf (for propagation) - OPTIONAL {?outNet a [rdfs:subClassOf* net:Net] ; - net:coverBaseNode ?outLeaf. - ?baseLeaf ?outRelationEdge ?outLeaf. - ?outRelationEdge amr:hasAmrRole ?outRelationRole.} - """, - 'binding': """ - # -- New Property Name - BIND (STRBEFORE(?predicateLabel, '-') AS ?basePropertyName). - BIND (CONCAT('not-', ?basePropertyName) AS ?propertyName). - BIND (CONCAT(?propertyName, 'ing') AS ?propertyName01). - BIND (CONCAT(?propertyName, '-by') AS ?propertyName10). - BIND (CONCAT(?propertyName, '-of') AS ?propertyName12). +# # -- Identify outgoing relations linked to the base leaf (for propagation) +# OPTIONAL {?outNet a [rdfs:subClassOf* net:Net] ; +# net:coverBaseNode ?outLeaf. +# ?baseLeaf ?outRelationEdge ?outLeaf. +# ?outRelationEdge amr:hasAmrRole ?outRelationRole.} +# """, +# 'binding': """ +# # -- New Property Name +# BIND (STRBEFORE(?predicateLabel, '-') AS ?basePropertyName). +# BIND (CONCAT('not-', ?basePropertyName) AS ?propertyName). +# BIND (CONCAT(?propertyName, 'ing') AS ?propertyName01). +# BIND (CONCAT(?propertyName, '-by') AS ?propertyName10). +# BIND (CONCAT(?propertyName, '-of') AS ?propertyName12). - # -- New Property Net - BIND (CONCAT(str(net:), 'atomProperty') AS ?n1). - BIND (CONCAT(?n1, '_', ?propertyName) AS ?n2). - BIND (CONCAT(?n2, '_', ?varLabel) AS ?n3). - BIND (uri(?n3) AS ?newNet). - """ -} +# # -- New Property Net +# BIND (CONCAT(str(net:), 'atomProperty') AS ?n1). +# BIND (CONCAT(?n1, '_', ?propertyName) AS ?n2). +# BIND (CONCAT(?n2, '_', ?varLabel) AS ?n3). +# BIND (uri(?n3) AS ?newNet). +# """ +# } +# -- --- -rule_set['create-atom-property-net-3'] = { - 'label': "create-atom-property-net-3", - 'comment': ("Create Atom Property Net: ", - " (1) from AMR Non Core Role Edge"), - 'construction': """ - # -- New Property Net - ?newNet a net:Atom_Property_Net ; - net:isCoreRoleLinked false ; - net:hasStructure ?sentenceRef ; - net:coverBaseNode ?baseLeaf ; - net:targetArgumentNode ?targetPropertyLeaf ; - net:hasPropertyType ?roleType ; - net:hasPropertyRole ?relationRole ; - net:hasPropertyName ?roleName. +# -- old --- +# rule_set['create-atom-property-net-3'] = { +# 'label': "create-atom-property-net-3", +# 'comment': ("Create Atom Property Net: ", +# " (1) from AMR Non Core Role Edge"), +# 'construction': """ +# # -- New Property Net +# ?newNet a net:Atom_Property_Net ; +# net:isCoreRoleLinked false ; +# net:hasStructure ?sentenceRef ; +# net:coverBaseNode ?baseLeaf ; +# net:targetArgumentNode ?targetPropertyLeaf ; +# net:hasPropertyType ?roleType ; +# net:hasPropertyRole ?relationRole ; +# net:hasPropertyName ?roleName. - # -- Propagation of relations (from nodes to nets) - ?inRelationRole a net:Relation. - ?inNet ?inRelationRole ?newNet. - ?outRelationRole a net:Relation. - ?newNet ?outRelationRole ?outNet. - """, - 'clause': """ - # -- Identify property covering relation role - ?relationRole rdfs:subClassOf amr:AMR_NonCore_Role ; - amr:getPropertyType ?roleType ; - amr:getDirectPropertyName ?roleName. - FILTER (?roleType = owl:ObjectProperty || - ?roleType = owl:DataProperty). - ?roleEdge amr:hasAmrRole ?relationRole. - ?baseLeaf ?roleEdge ?targetPropertyLeaf. - ?baseLeaf a amr:AMR_Leaf ; - amr:hasVariable ?variable. - ?variable amr:label ?varLabel. +# # -- Propagation of relations (from nodes to nets) +# ?inRelationRole a net:Relation. +# ?inNet ?inRelationRole ?newNet. +# ?outRelationRole a net:Relation. +# ?newNet ?outRelationRole ?outNet. +# """, +# 'clause': """ +# # -- Identify property covering relation role +# ?relationRole rdfs:subClassOf amr:AMR_NonCore_Role ; +# amr:getPropertyType ?roleType ; +# amr:getDirectPropertyName ?roleName. +# FILTER (?roleType = owl:ObjectProperty || +# ?roleType = owl:DataProperty). +# ?roleEdge amr:hasAmrRole ?relationRole. +# ?baseLeaf ?roleEdge ?targetPropertyLeaf. +# ?baseLeaf a amr:AMR_Leaf ; +# amr:hasVariable ?variable. +# ?variable amr:label ?varLabel. - # -- Identify structure - ?root a amr:AMR_Root ; - amr:hasSentenceID ?sentenceRef. +# # -- Identify structure +# ?root a amr:AMR_Root ; +# amr:hasSentenceID ?sentenceRef. - # -- Identify inbound relations linked to the base leaf (for propagation) - OPTIONAL {?inNet a [rdfs:subClassOf* net:Net] ; - net:coverBaseNode ?inLeaf. - ?inLeaf ?inRelationEdge ?baseLeaf. - ?inRelationEdge amr:hasAmrRole ?inRelationRole.} +# # -- Identify inbound relations linked to the base leaf (for propagation) +# OPTIONAL {?inNet a [rdfs:subClassOf* net:Net] ; +# net:coverBaseNode ?inLeaf. +# ?inLeaf ?inRelationEdge ?baseLeaf. +# ?inRelationEdge amr:hasAmrRole ?inRelationRole.} - # -- Identify outgoing relations linked to the base leaf (for propagation) - OPTIONAL {?outNet a [rdfs:subClassOf* net:Net] ; - net:coverBaseNode ?outLeaf. - ?baseLeaf ?outRelationEdge ?outLeaf. - ?outRelationEdge amr:hasAmrRole ?outRelationRole.} - """, - 'binding': """ - # -- New Property Net - BIND (CONCAT(str(net:), 'atomProperty') AS ?n1). - BIND (CONCAT(?n1, '_', str(?roleName)) AS ?n2). - BIND (CONCAT(?n2, '_', str(?varLabel)) AS ?n3). - BIND (uri(?n3) AS ?newNet). - """ -} +# # -- Identify outgoing relations linked to the base leaf (for propagation) +# OPTIONAL {?outNet a [rdfs:subClassOf* net:Net] ; +# net:coverBaseNode ?outLeaf. +# ?baseLeaf ?outRelationEdge ?outLeaf. +# ?outRelationEdge amr:hasAmrRole ?outRelationRole.} +# """, +# 'binding': """ +# # -- New Property Net +# BIND (CONCAT(str(net:), 'atomProperty') AS ?n1). +# BIND (CONCAT(?n1, '_', str(?roleName)) AS ?n2). +# BIND (CONCAT(?n2, '_', str(?varLabel)) AS ?n3). +# BIND (uri(?n3) AS ?newNet). +# """ +# } +# -- --- # --------------------------------------------- diff --git a/structure/cts/amr_scheme_1.py b/structure/cts/amr_scheme_1.py index 378c5dbbceab8375b27d1bb2ffd3cd485c8ee3d1..890d2bc2bc67776703e12915043e58a997f87dc8 100644 --- a/structure/cts/amr_scheme_1.py +++ b/structure/cts/amr_scheme_1.py @@ -106,8 +106,8 @@ atomic_extraction_sequence = { 'create-individual-net-1', #'create-individual-net-2', 'create-atom-property-net-1', - 'create-atom-property-net-2', - 'create-atom-property-net-3', + # --old --- 'create-atom-property-net-2', + # --old --- 'create-atom-property-net-3', 'create-phenomena-net-1'] } diff --git a/tenet.log b/tenet.log index 4c9f57d3c0d0e3cf45a6785e802a4d009e508f3b..ca3030fee7d95c15d1d566618dcf7a9560e65a17 100644 --- a/tenet.log +++ b/tenet.log @@ -66,11 +66,11 @@ - DEBUG - --- Export work graph as turtle - DEBUG - ----- Work graph file: ./output/SolarSystemDev1-20221208/SolarSystemDev1-1/SolarSystemDev1.ttl - DEBUG - --- Ending Structure Preparation -- DEBUG - ----- Total Execution Time = 0:00:00.116282 +- DEBUG - ----- Total Execution Time = 0:00:00.122036 - INFO - -- Loading Extraction Scheme (amr_scheme_1) - DEBUG - ----- Step number: 3 - INFO - -- Loading Extraction Rules (amr_ctr/*) -- DEBUG - ----- Total rule number: 89 +- DEBUG - ----- Total rule number: 87 - INFO - -- Applying extraction step: preprocessing - INFO - --- Sequence: amrld-correcting-sequence - INFO - ----- fix-amr-bug-about-system-solar-planet: 5/5 new triples (575) @@ -109,123 +109,116 @@ - DEBUG - ----- (refinement) refine-cover-node-1: 1 new triples (851) - INFO - ----- create-atom-property-net-1: 65/65 new triples (916) - DEBUG - ----- (refinement) refine-cover-node-1: 6 new triples (922) -- DEBUG - ----- create-atom-property-net-2: 0/0 new triples (922) -- INFO - ----- create-atom-property-net-3: 21/24 new triples (943) -- DEBUG - ----- (refinement) refine-cover-node-1: 2 new triples (945) -- INFO - ----- create-phenomena-net-1: 28/28 new triples (973) -- DEBUG - ----- (refinement) refine-cover-node-1: 2 new triples (975) +- INFO - ----- create-phenomena-net-1: 26/26 new triples (948) +- DEBUG - ----- (refinement) refine-cover-node-1: 2 new triples (950) - INFO - --- Sequence: phenomena-checking-sequence -- INFO - ----- expand-and-conjunction-phenomena-net: 8/8 new triples (983) -- DEBUG - ----- expand-degree-phenomena-net-1: 0/0 new triples (983) -- DEBUG - ----- expand-degree-phenomena-net-2: 0/0 new triples (983) -- DEBUG - ----- expand-degree-phenomena-net-3: 0/0 new triples (983) -- DEBUG - ----- expand-degree-phenomena-net-4: 0/0 new triples (983) -- DEBUG - ----- expand-degree-phenomena-net-5: 0/0 new triples (983) -- DEBUG - ----- expand-degree-phenomena-net-6: 0/0 new triples (983) +- INFO - ----- expand-and-conjunction-phenomena-net: 4/4 new triples (954) +- DEBUG - ----- expand-degree-phenomena-net-1: 0/0 new triples (954) +- DEBUG - ----- expand-degree-phenomena-net-2: 0/0 new triples (954) +- DEBUG - ----- expand-degree-phenomena-net-3: 0/0 new triples (954) +- DEBUG - ----- expand-degree-phenomena-net-4: 0/0 new triples (954) +- DEBUG - ----- expand-degree-phenomena-net-5: 0/0 new triples (954) +- DEBUG - ----- expand-degree-phenomena-net-6: 0/0 new triples (954) - INFO - --- Sequence: composite-property-extraction-sequence -- DEBUG - ----- create-composite-class-net-from-property-1: 0/0 new triples (983) -- INFO - ----- create-composite-class-net-from-property-2: 12/15 new triples (995) -- DEBUG - ----- (refinement) refine-cover-node-1: 3 new triples (998) +- DEBUG - ----- create-composite-class-net-from-property-1: 0/0 new triples (954) +- INFO - ----- create-composite-class-net-from-property-2: 12/15 new triples (966) +- DEBUG - ----- (refinement) refine-cover-node-1: 3 new triples (969) - INFO - --- Sequence: composite-class-extraction-sequence-1 -- INFO - ----- create-composite-class-net-from-property-1: 37/39 new triples (1035) -- DEBUG - ----- (refinement) refine-cover-node-1: 6 new triples (1041) -- DEBUG - ----- (refinement) refine-cover-node-2: 2 new triples (1043) -- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triples (1043) -- INFO - ----- create-composite-class-net-from-property-3: 28/31 new triples (1071) -- DEBUG - ----- (refinement) refine-cover-node-1: 4 new triples (1075) -- DEBUG - ----- (refinement) refine-cover-node-2: 2 new triples (1077) +- INFO - ----- create-composite-class-net-from-property-1: 36/38 new triples (1005) +- DEBUG - ----- (refinement) refine-cover-node-1: 6 new triples (1011) +- DEBUG - ----- (refinement) refine-cover-node-2: 2 new triples (1013) +- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triples (1013) +- DEBUG - ----- create-composite-class-net-from-property-3: 0/0 new triples (1013) - INFO - --- Sequence: composite-class-extraction-sequence-2 -- DEBUG - ----- create-composite-class-net-from-phenomena-1: 0/0 new triples (1077) -- DEBUG - ----- create-composite-class-net-from-phenomena-2: 0/0 new triples (1077) -- DEBUG - ----- create-composite-class-net-from-phenomena-3: 0/0 new triples (1077) -- DEBUG - ----- create-composite-class-net-from-phenomena-4: 0/0 new triples (1077) +- DEBUG - ----- create-composite-class-net-from-phenomena-1: 0/0 new triples (1013) +- DEBUG - ----- create-composite-class-net-from-phenomena-2: 0/0 new triples (1013) +- DEBUG - ----- create-composite-class-net-from-phenomena-3: 0/0 new triples (1013) +- DEBUG - ----- create-composite-class-net-from-phenomena-4: 0/0 new triples (1013) - INFO - --- Sequence: phenomena-checking-sequence -- INFO - ----- expand-and-conjunction-phenomena-net: 4/12 new triples (1081) -- DEBUG - ----- expand-degree-phenomena-net-1: 0/0 new triples (1081) -- DEBUG - ----- expand-degree-phenomena-net-2: 0/0 new triples (1081) -- DEBUG - ----- expand-degree-phenomena-net-3: 0/0 new triples (1081) -- DEBUG - ----- expand-degree-phenomena-net-4: 0/0 new triples (1081) -- DEBUG - ----- expand-degree-phenomena-net-5: 0/0 new triples (1081) -- DEBUG - ----- expand-degree-phenomena-net-6: 0/0 new triples (1081) +- INFO - ----- expand-and-conjunction-phenomena-net: 3/7 new triples (1016) +- DEBUG - ----- expand-degree-phenomena-net-1: 0/0 new triples (1016) +- DEBUG - ----- expand-degree-phenomena-net-2: 0/0 new triples (1016) +- DEBUG - ----- expand-degree-phenomena-net-3: 0/0 new triples (1016) +- DEBUG - ----- expand-degree-phenomena-net-4: 0/0 new triples (1016) +- DEBUG - ----- expand-degree-phenomena-net-5: 0/0 new triples (1016) +- DEBUG - ----- expand-degree-phenomena-net-6: 0/0 new triples (1016) - INFO - --- Sequence: composite-property-extraction-sequence -- DEBUG - ----- create-composite-class-net-from-property-1: 0/0 new triples (1081) -- INFO - ----- create-composite-class-net-from-property-2: 15/31 new triples (1096) -- DEBUG - ----- (refinement) refine-cover-node-1: 3 new triples (1099) +- DEBUG - ----- create-composite-class-net-from-property-1: 0/0 new triples (1016) +- INFO - ----- create-composite-class-net-from-property-2: 15/31 new triples (1031) +- DEBUG - ----- (refinement) refine-cover-node-1: 3 new triples (1034) - INFO - --- Sequence: composite-class-extraction-sequence-1 -- DEBUG - ----- create-composite-class-net-from-property-1: 0/40 new triples (1099) -- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triples (1099) -- INFO - ----- create-composite-class-net-from-property-3: 18/49 new triples (1117) -- DEBUG - ----- (refinement) refine-cover-node-1: 4 new triples (1121) -- DEBUG - ----- (refinement) refine-cover-node-2: 1 new triples (1122) +- DEBUG - ----- create-composite-class-net-from-property-1: 0/39 new triples (1034) +- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triples (1034) +- DEBUG - ----- create-composite-class-net-from-property-3: 0/0 new triples (1034) - INFO - --- Sequence: composite-class-extraction-sequence-2 -- DEBUG - ----- create-composite-class-net-from-phenomena-1: 0/0 new triples (1122) -- DEBUG - ----- create-composite-class-net-from-phenomena-2: 0/0 new triples (1122) -- DEBUG - ----- create-composite-class-net-from-phenomena-3: 0/0 new triples (1122) -- DEBUG - ----- create-composite-class-net-from-phenomena-4: 0/0 new triples (1122) +- DEBUG - ----- create-composite-class-net-from-phenomena-1: 0/0 new triples (1034) +- DEBUG - ----- create-composite-class-net-from-phenomena-2: 0/0 new triples (1034) +- DEBUG - ----- create-composite-class-net-from-phenomena-3: 0/0 new triples (1034) +- DEBUG - ----- create-composite-class-net-from-phenomena-4: 0/0 new triples (1034) - INFO - --- Sequence: restriction-adding-sequence -- DEBUG - ----- add-restriction-to-class-net-from-property-1: 0/0 new triples (1122) +- DEBUG - ----- add-restriction-to-class-net-from-property-1: 0/0 new triples (1034) - INFO - --- Sequence: classification-sequence -- INFO - ----- classify-net-from-core-1: 4/4 new triples (1126) -- INFO - ----- classify-net-from-core-2: 2/2 new triples (1128) -- DEBUG - ----- classify-net-from-core-3: 0/0 new triples (1128) -- DEBUG - ----- classify-net-from-mod: 0/0 new triples (1128) -- DEBUG - ----- classify-net-from-part: 0/4 new triples (1128) -- DEBUG - ----- classify-net-from-domain: 0/0 new triples (1128) -- DEBUG - ----- classify-net-from-degree-phenomena-1: 0/0 new triples (1128) -- DEBUG - ----- classify-net-from-degree-phenomena-2: 0/0 new triples (1128) -- DEBUG - ----- classify-net-from-degree-phenomena-3: 0/0 new triples (1128) -- DEBUG - ----- propagate-individual-1: 0/1 new triples (1128) -- INFO - ----- propagate-individual-2: 1/1 new triples (1129) -- DEBUG - ----- reclassify-deprecated-net: 0/0 new triples (1129) +- INFO - ----- classify-net-from-core-1: 4/4 new triples (1038) +- INFO - ----- classify-net-from-core-2: 2/2 new triples (1040) +- DEBUG - ----- classify-net-from-core-3: 0/0 new triples (1040) +- DEBUG - ----- classify-net-from-mod: 0/0 new triples (1040) +- DEBUG - ----- classify-net-from-part: 0/4 new triples (1040) +- DEBUG - ----- classify-net-from-domain: 0/0 new triples (1040) +- DEBUG - ----- classify-net-from-degree-phenomena-1: 0/0 new triples (1040) +- DEBUG - ----- classify-net-from-degree-phenomena-2: 0/0 new triples (1040) +- DEBUG - ----- classify-net-from-degree-phenomena-3: 0/0 new triples (1040) +- DEBUG - ----- propagate-individual-1: 0/1 new triples (1040) +- INFO - ----- propagate-individual-2: 1/1 new triples (1041) +- DEBUG - ----- reclassify-deprecated-net: 0/0 new triples (1041) - DEBUG - --- Serializing graph to SolarSystemDev1_transduction - DEBUG - ----- step: transduction - DEBUG - ----- id: SolarSystemDev1 - DEBUG - ----- work_file: ./output/SolarSystemDev1-20221208/SolarSystemDev1-1/SolarSystemDev1_transduction.ttl - DEBUG - ----- base: http://SolarSystemDev1/transduction -- INFO - ----- 316 triples extracted during transduction step +- INFO - ----- 228 triples extracted during transduction step - INFO - -- Applying extraction step: generation - INFO - --- Sequence: main-generation-sequence -- INFO - ----- compute-uri-for-owl-declaration-1: 10/10 new triples (1139) -- INFO - ----- compute-uri-for-owl-declaration-2: 1/1 new triples (1140) -- DEBUG - ----- compute-uri-for-owl-declaration-4: 0/0 new triples (1140) -- INFO - ----- compute-uri-for-owl-declaration-5: 10/10 new triples (1150) -- INFO - ----- compute-uri-for-owl-declaration-6: 6/6 new triples (1156) -- INFO - ----- generate-atom-class: 12/12 new triples (1168) -- INFO - ----- classify-atom-class-1: 4/4 new triples (1172) -- INFO - ----- classify-atom-class-2: 1/1 new triples (1173) -- INFO - ----- generate-individual: 3/3 new triples (1176) -- INFO - ----- classify-individual: 1/1 new triples (1177) -- INFO - ----- generate-atom-property-1: 25/25 new triples (1202) -- INFO - ----- generate-atom-property-12: 12/20 new triples (1214) -- DEBUG - ----- generate-inverse-relation: 0/0 new triples (1214) -- INFO - ----- generate-composite-class: 20/20 new triples (1234) -- INFO - ----- add-restriction-to-class-1: 12/15 new triples (1246) -- DEBUG - ----- add-restriction-to-class-2: 0/0 new triples (1246) -- INFO - ----- add-restriction-to-class-3: 8/10 new triples (1254) -- DEBUG - ----- add-restriction-to-class-4: 0/0 new triples (1254) -- DEBUG - ----- add-restriction-to-class-5: 0/0 new triples (1254) -- DEBUG - ----- add-restriction-to-class-6: 0/0 new triples (1254) -- INFO - ----- generate-composite-property: 8/8 new triples (1262) +- INFO - ----- compute-uri-for-owl-declaration-1: 7/7 new triples (1048) +- INFO - ----- compute-uri-for-owl-declaration-2: 1/1 new triples (1049) +- DEBUG - ----- compute-uri-for-owl-declaration-4: 0/0 new triples (1049) +- INFO - ----- compute-uri-for-owl-declaration-5: 8/8 new triples (1057) +- INFO - ----- compute-uri-for-owl-declaration-6: 6/6 new triples (1063) +- INFO - ----- generate-atom-class: 12/12 new triples (1075) +- INFO - ----- classify-atom-class-1: 4/4 new triples (1079) +- INFO - ----- classify-atom-class-2: 1/1 new triples (1080) +- INFO - ----- generate-individual: 3/3 new triples (1083) +- INFO - ----- classify-individual: 1/1 new triples (1084) +- INFO - ----- generate-atom-property-1: 20/20 new triples (1104) +- INFO - ----- generate-atom-property-12: 12/20 new triples (1116) +- DEBUG - ----- generate-inverse-relation: 0/0 new triples (1116) +- INFO - ----- generate-composite-class: 8/8 new triples (1124) +- DEBUG - ----- add-restriction-to-class-1: 0/0 new triples (1124) +- DEBUG - ----- add-restriction-to-class-2: 0/0 new triples (1124) +- INFO - ----- add-restriction-to-class-3: 8/10 new triples (1132) +- DEBUG - ----- add-restriction-to-class-4: 0/0 new triples (1132) +- DEBUG - ----- add-restriction-to-class-5: 0/0 new triples (1132) +- DEBUG - ----- add-restriction-to-class-6: 0/0 new triples (1132) +- INFO - ----- generate-composite-property: 8/8 new triples (1140) - DEBUG - --- Serializing graph to SolarSystemDev1_generation - DEBUG - ----- step: generation - DEBUG - ----- id: SolarSystemDev1 - DEBUG - ----- work_file: ./output/SolarSystemDev1-20221208/SolarSystemDev1-1/SolarSystemDev1_generation.ttl - DEBUG - ----- base: http://SolarSystemDev1/generation -- INFO - ----- 133 triples extracted during generation step +- INFO - ----- 99 triples extracted during generation step - INFO - -- Result: file containing only the factoids - DEBUG - --- Making factoid graph with the last step result -- DEBUG - ----- Number of factoids: 146 +- DEBUG - ----- Number of factoids: 109 - DEBUG - ----- Graph base: http://SolarSystemDev1/factoid - DEBUG - --- Serializing graph to factoid file (./output/SolarSystemDev1-20221208/SolarSystemDev1-1/SolarSystemDev1_factoid.ttl) - INFO - *** Execution Time *** ----- Function: apply (lib.tenet_extraction) ------ Total Time: 0:00:07.096233 ------ Process Time: 0:00:07.076402 +----- Total Time: 0:00:07.452790 +----- Process Time: 0:00:07.406061 *** - *** - INFO - === Final Ontology Generation === - INFO - -- Making complete factoid graph by merging sentence factoid graphs -- INFO - ----- Total factoid number: 146 +- INFO - ----- Total factoid number: 109 - INFO - ----- Graph base: http://SolarSystemDev1/factoid - INFO - -- Serializing graph to factoid file (./output/SolarSystemDev1-20221208/SolarSystemDev1_factoid.ttl) - INFO - === Done ===