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

Some update in SSC-01, SSC-02

parent 4217c057
Branches
Tags
No related merge requests found
...@@ -107,19 +107,19 @@ STC-21 (x, y) : ...@@ -107,19 +107,19 @@ STC-21 (x, y) :
commonConcept(x) commonConcept(x)
=> nodes = { x.nodes } => nodes = { x.nodes }
type = class type = class
class_id = define-id(x.concept) id = define-id(x.concept)
owl = string(class_id, ' a ', 'rdfs:Class') owl = string(id, ' a ', 'rdfs:Class')
values = { class_id, owl } values = { id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
STC-22 (x, y) : STC-22 (x, y) :
:domain(x,y) & class(x) & class(y) :domain(x,y) & class(x) & class(y)
=> nodes = { x.nodes, y.nodes } => nodes = { x.nodes, y.nodes }
type = class type = class
class_id = define-id(x.class_id, y.class_id) id = define-id(x.id, y.id)
owl = string(class_id, ' a ', 'rdfs:Class') owl = string(id, ' a ', 'rdfs:Class')
owl = string(class_id, ' rdfs:subClassOf ', y.class_id) owl = string(id, ' rdfs:subClassOf ', y.id)
values = { class_id, owl } values = { id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
...@@ -131,11 +131,11 @@ STC-23 (x, y) : ...@@ -131,11 +131,11 @@ STC-23 (x, y) :
:name(x, y) & class(x) & namedEntities(x, y) :name(x, y) & class(x) & namedEntities(x, y)
=> nodes = { x.nodes } => nodes = { x.nodes }
type = individual type = individual
class_id = x.class_id id = x.id
individual_id = y.name id = y.name
owl = string(individual_id, ' a ', 'owl:individual') owl = string(id, ' a ', 'owl:individual')
owl = string(individual_id, ' a ', class_id) owl = string(id, ' a ', id)
values = { class_id, individual_id, owl } values = { id, id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
...@@ -167,11 +167,11 @@ STC-41 (x, y, z) : ...@@ -167,11 +167,11 @@ STC-41 (x, y, z) :
:ARG1-of(x, y) & class(x) & objectProperty(y) & ARG0(y, z) & class(z) :ARG1-of(x, y) & class(x) & objectProperty(y) & ARG0(y, z) & class(z)
=> nodes = { x.nodes } => nodes = { x.nodes }
type = class type = class
class_id = define-id(z.class_id, y.property_id, x.class_id) id = define-id(z.id, y.property_id, x.id)
owl = string(class_id, ' a ', 'rdfs:Class') owl = string(id, ' a ', 'rdfs:Class')
owl = string(class_id, ' rdfs:subClassOf ', x.class_id) owl = string(id, ' rdfs:subClassOf ', x.id)
owl = define-OWL-restriction (class_id, y.property_id, z.class_id) owl = define-OWL-restriction (id, y.property_id, z.id)
values = { class_id, owl } values = { id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
exemple : exemple :
...@@ -181,7 +181,7 @@ exemple : ...@@ -181,7 +181,7 @@ exemple :
=> nodes = { s, b, g } => nodes = { s, b, g }
type = class type = class
class_id = "gravitation-bind-system" id = "gravitation-bind-system"
owl = ":gravitation-bind-system a rdfs:Class" owl = ":gravitation-bind-system a rdfs:Class"
owl = ":gravitation-bind-system a :system" owl = ":gravitation-bind-system a :system"
owl = ":gravitation-bind-system rdfs:subClassOf [ rdf:type owl:Restriction ; owl = ":gravitation-bind-system rdfs:subClassOf [ rdf:type owl:Restriction ;
...@@ -194,7 +194,14 @@ exemple : ...@@ -194,7 +194,14 @@ exemple :
# STC niveau 6 : extraction de relations non taxonomiques # STC niveau 6 : extraction de relations non taxonomiques
# -------------------------------------------------------- # --------------------------------------------------------
# -- STC-51 (i1, i2) :
:part(i1, i2) & individual(c1) & individual(i1)
=> nodes = { c1.nodes, i1.nodes }
type = relation
id = define-id('has-part')
owl = define-OWL-restriction (i1.id, id, i2.id)
values = { id, owl }
newNet(nodes, type, values)
# -------------------------------------------------------- # --------------------------------------------------------
......
...@@ -89,16 +89,25 @@ ...@@ -89,16 +89,25 @@
# ::comment "... and small Solar System bodies." # ::comment "... and small Solar System bodies."
:solar-system a owl:individual . :solar-system
a owl:individual ;
a :system .
:solar-system-small-bodies a rdfs:Class ; body a rdfs:Class .
small-body
a rdfs:Class ;
rdfs:subClassOf :body .
:solar-system-small-body a rdfs:Class ;
rdfs:subClassOf :small-body ;
rdfs:subClassOf [ rdfs:subClassOf [
a owl:Restriction ; a owl:Restriction ;
owl:onProperty :part-of ; owl:onProperty :part-of ;
owl:hasValue :solar-system owl:hasValue :solar-system
] . ] .
:solar-system-small-bodies a rdfs:Class ; :solar-system-small-body a rdfs:Class ;
rdfs:subClassOf [ rdfs:subClassOf [
a owl:Restriction ; a owl:Restriction ;
owl:onProperty :part-of ; owl:onProperty :part-of ;
......
...@@ -107,19 +107,19 @@ STC-21 (x, y) : ...@@ -107,19 +107,19 @@ STC-21 (x, y) :
commonConcept(x) commonConcept(x)
=> nodes = { x.nodes } => nodes = { x.nodes }
type = class type = class
class_id = define-id(x.concept) id = define-id(x.concept)
owl = string(class_id, ' a ', 'rdfs:Class') owl = string(id, ' a ', 'rdfs:Class')
values = { class_id, owl } values = { id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
STC-22 (x, y) : STC-22 (x, y) :
:domain(x,y) & class(x) & class(y) :domain(x,y) & class(x) & class(y)
=> nodes = { x.nodes, y.nodes } => nodes = { x.nodes, y.nodes }
type = class type = class
class_id = define-id(x.class_id, y.class_id) id = define-id(x.id, y.id)
owl = string(class_id, ' a ', 'rdfs:Class') owl = string(id, ' a ', 'rdfs:Class')
owl = string(class_id, ' rdfs:subClassOf ', y.class_id) owl = string(id, ' rdfs:subClassOf ', y.id)
values = { class_id, owl } values = { id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
...@@ -131,11 +131,11 @@ STC-23 (x, y) : ...@@ -131,11 +131,11 @@ STC-23 (x, y) :
:name(x, y) & class(x) & namedEntities(x, y) :name(x, y) & class(x) & namedEntities(x, y)
=> nodes = { x.nodes } => nodes = { x.nodes }
type = individual type = individual
class_id = x.class_id id = x.id
individual_id = y.name id = y.name
owl = string(individual_id, ' a ', 'owl:individual') owl = string(id, ' a ', 'owl:individual')
owl = string(individual_id, ' a ', class_id) owl = string(id, ' a ', id)
values = { class_id, individual_id, owl } values = { id, id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
...@@ -167,11 +167,11 @@ STC-41 (x, y, z) : ...@@ -167,11 +167,11 @@ STC-41 (x, y, z) :
:ARG1-of(x, y) & class(x) & objectProperty(y) & ARG0(y, z) & class(z) :ARG1-of(x, y) & class(x) & objectProperty(y) & ARG0(y, z) & class(z)
=> nodes = { x.nodes } => nodes = { x.nodes }
type = class type = class
class_id = define-id(z.class_id, y.property_id, x.class_id) id = define-id(z.id, y.property_id, x.id)
owl = string(class_id, ' a ', 'rdfs:Class') owl = string(id, ' a ', 'rdfs:Class')
owl = string(class_id, ' rdfs:subClassOf ', x.class_id) owl = string(id, ' rdfs:subClassOf ', x.id)
owl = define-OWL-restriction (class_id, y.property_id, z.class_id) owl = define-OWL-restriction (id, y.property_id, z.id)
values = { class_id, owl } values = { id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
exemple : exemple :
...@@ -181,7 +181,7 @@ exemple : ...@@ -181,7 +181,7 @@ exemple :
=> nodes = { s, b, g } => nodes = { s, b, g }
type = class type = class
class_id = "gravitation-bind-system" id = "gravitation-bind-system"
owl = ":gravitation-bind-system a rdfs:Class" owl = ":gravitation-bind-system a rdfs:Class"
owl = ":gravitation-bind-system a :system" owl = ":gravitation-bind-system a :system"
owl = ":gravitation-bind-system rdfs:subClassOf [ rdf:type owl:Restriction ; owl = ":gravitation-bind-system rdfs:subClassOf [ rdf:type owl:Restriction ;
...@@ -193,17 +193,17 @@ exemple : ...@@ -193,17 +193,17 @@ exemple :
# -------------------------------------------------------- # --------------------------------------------------------
# STC niveau 6 : extraction de relations non taxonomiques # STC niveau 6 : extraction de relations non taxonomiques
# -------------------------------------------------------- # --------------------------------------------------------
# question sur rstriction : voir ticket 1 # question sur restriction : voir ticket 1
STC-51 (x, y, z) : STC-51 (c1, i1) :
:part-of(x, y) & class(x) & individual(z) :part-of(c1, i1) & class(c1) & individual(i1)
=> nodes = { x.nodes } => nodes = { c1.nodes, i1.nodes }
type = class type = class
class_id = define-id(z.class_id, y.property_id, x.class_id) id = define-id(i1.id, c1.id)
owl = string(class_id, ' a ', 'rdfs:Class') owl = string(id, ' a ', 'rdfs:Class')
owl = string(class_id, ' rdfs:subClassOf ', x.class_id) owl = string(id, ' rdfs:subClassOf ', c1.id)
owl = define-OWL-restriction (class_id, ':part-of', z.class_id) owl = define-OWL-restriction (id, ':part-of', i1.id)
values = { class_id, owl } values = { id, owl }
newNet(nodes, type, values) newNet(nodes, type, values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment