Skip to content

Commit

Permalink
fix errors in the vocabularies
Browse files Browse the repository at this point in the history
  • Loading branch information
arademaker committed Jul 21, 2021
1 parent 5ffb0e1 commit 9276032
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 51 deletions.
31 changes: 15 additions & 16 deletions vocabularies/dmrs.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dmrs: <http://www.delph-in.net/schema/dmrs#> .
@prefix erg: <http://www.delph-in.net/schema/erg#> .
@prefix delph: <http://www.delph-in.net/schema/>

@prefix delph: <http://www.delph-in.net/schema/> .

dmrs:DMRS
a rdfs:Class ;
Expand All @@ -21,19 +20,19 @@ dmrs:Link
rdfs:comment "DMRS way to represent arguments without variables"@en-us .

dmrs:ScopalRelation
a rdfs:Class
rdfs:comment "The class of the scopal relationships between DMRS nodes"@en-us.
a rdfs:Class ;
rdfs:comment "The class of the scopal relationships between DMRS nodes"@en-us .

dmrs:Role
a rdfs:Class ;
rdfs:comment "The class of the roles of a link in DMRS"@en-us.
rdfs:comment "The class of the roles of a link in DMRS"@en-us .

delph:hasDMRS
rdf:subPropertyOf delph:hasSemanticRepresentation
rdfs:domain delph:Result ;
rdfs:range dmrs:DMRS ;
rdfs:comment "A property that links a result to its DMRS."@en-us.

rdf:subPropertyOf delph:hasSemanticRepresentation ;
rdfs:domain delph:Result ;
rdfs:range dmrs:DMRS ;
rdfs:comment "A property that links a result to its DMRS."@en-us .
dmrs:hasNode
a rdf:Property ;
rdfs:subProperty delph:hasPredication ;
Expand All @@ -55,14 +54,14 @@ dmrs:hasId


dmrs:hasFrom
a rdf:Property .
rdfs:domain dmrs:Link ;
rdfs:range dmrs:Node .
a rdf:Property ;
rdfs:domain dmrs:Link ;
rdfs:range dmrs:Node .

dmrs:hasTo
a rdf:Property .
rdfs:domain dmrs:Link ;
rdfs:range dmrs:Node .
a rdf:Property ;
rdfs:domain dmrs:Link ;
rdfs:range dmrs:Node .

dmrs:hasScopalRelation
a rdf:Property ;
Expand Down
4 changes: 3 additions & 1 deletion vocabularies/erg.ttl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix mrs: <http://www.delph-in.net/schema/mrs#> .
@prefix delph: <http://www.delph-in.net/schema/> .
@prefix erg: <http://www.delph-in.net/schema/erg#> .

Expand Down Expand Up @@ -81,6 +82,7 @@ erg:perf
rdfs:comment "A property that states if the event has a perfective aspect"@en-us.

#ICONS:

erg:Focus
a rdfs:Class ;
rdfs:subClassOf mrs:Icons .
Expand All @@ -89,4 +91,4 @@ erg:Topic
a rdfs:Class ;
rdfs:subClassOf mrs:Icons .

#This is not an exhaustive list of possible Icons on ERG, I couldn't find it.
#This is not an exhaustive list of possible Icons on ERG, I couldn't find it.
33 changes: 17 additions & 16 deletions vocabularies/mrs.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ mrs:Icons
rdfs:comment "The class of the relations between two variables"@en-us .

mrs:hasHcons
a rdf:Property ;
rdfs:domain mrs:MRS ;
rdfs:range mrs:Hcons .
rdfs:comment "Property that links the MRS node to one of its HCONS"@en-us .
a rdf:Property ;
rdfs:domain mrs:MRS ;
rdfs:range mrs:Hcons ;
rdfs:comment "Property that links the MRS node to one of its HCONS"@en-us .

mrs:hasIcons
a rdf:Property ;
Expand Down Expand Up @@ -79,10 +79,10 @@ mrs:leftIcons
rdfs:comment "The left hand side intrinsic variable of the constraining EP"@en-us.

mrs:rightIcons
a rdf:Property ;
rdfs:domain mrs:Icons ;
rdfs:range delph:u .
rdfs:comment "The right hand side intrinsic variable of the constraining EP"@en-us.
a rdf:Property ;
rdfs:domain mrs:Icons ;
rdfs:range delph:u ;
rdfs:comment "The right hand side intrinsic variable of the constraining EP"@en-us.

mrs:Qeq
a rdfs:Class;
Expand All @@ -101,10 +101,10 @@ mrs:Outscopes

#Defining properties
delph:hasMRS
rdf:subPropertyOf delph:hasSemanticRepresentation
rdfs:domain delph:Result ;
rdfs:range mrs:MRS ;
rdfs:comment "A property that links a result to its MRS."@en-us.
rdf:subPropertyOf delph:hasSemanticRepresentation ;
rdfs:domain delph:Result ;
rdfs:range mrs:MRS ;
rdfs:comment "A property that links a result to its MRS."@en-us .

mrs:hasEP
a rdf:Property ;
Expand All @@ -120,15 +120,16 @@ mrs:hasLabel
rdfs:comment "A mapping of an EP to its scope handle"@en-us .

# by http://svn.delph-in.net/erg/trunk/etc/erg.smi

mrs:role
a rdf:Property ;
rdfs:comment "The general property of roles in MRS"@en-us .

mrs:rstr
a rdfs:subPropertyOf mrs:role ;
rdfs:domain mrs:ElementaryPredication ;
rdfs:range mrs:h ;
rdfs:label "rstr" .
rdfs:subPropertyOf mrs:role ;
rdfs:domain mrs:ElementaryPredication ;
rdfs:range mrs:h ;
rdfs:label "rstr" .

mrs:body
a rdf:Property ;
Expand Down
37 changes: 19 additions & 18 deletions vocabularies/semstructs.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
@prefix pos: <http://www.delph-in.net/schema/pos#> . # maybe use "/pos/"
@prefix mrs: <http://www.delph-in.net/schema/mrs#> .

#This document contains the metaspecification of the semantic structures and its parts.
#Heavily inspired on the classes of PyDelphin objects.
# This document contains the metaspecification of the semantic
# structures and its parts. Heavily inspired on the classes of
# PyDelphin objects.

#About Lnks, they will only appear on predications for now, not on the semantic structures. They will be represented only by cfroms and ctos.
# About Lnks, they will only appear on predications for now, not on
# the semantic structures. They will be represented only by cfroms and
# ctos.


#Declaring the classes:
# Declaring the classes:

delph:Profile
a rdfs:Class ;
Expand Down Expand Up @@ -59,14 +61,14 @@ delph:SortInfo
rdfs:comment "The class for nodes which represents the morphosemantic information of a predication"@en-us .

delph:Pos
a rdf:Class ;
a rdf:Class .

#delph:Identifier
# delph:Identifier
# a rdfs:Class ;
# rdfs:comment "The class of the identifiers of the predications of a semantic structure"@en-us .


#About types (using :
# About types (using :
# http://svn.delph-in.net/erg/trunk/etc/erg.smi
# http://svn.delph-in.net/erg/trunk/semi.vpm
# and pydelphin variable.py):
Expand Down Expand Up @@ -238,23 +240,22 @@ pos:q
pos:x
a delph:Pos ;
rdfs:comment "PoS tag dedicated to other closed classes."@en-us .
#

pos:u
a delph:Pos ;
rdfs:comment "PoS tag dedicated to unknown classes(?)."@en-us .

#Not including the "discourse" PoS as its discouraged.


#The roles will be specified in each semantic representation as its not trivial to generalize:
#In MRS, the role links an Predication (EP) to a variable(delph:u)
#In EDS, the role is a link between two nodes (predications)
#In DMRS, the role relates two nodes (predication) but they are followed by a scopal relationship.
#The only role which will be put here is the Carg.
# Not including the "discourse" PoS as its discouraged.

# The roles will be specified in each semantic representation as its
# not trivial to generalize: In MRS, the role links an Predication
# (EP) to a variable(delph:u) In EDS, the role is a link between two
# nodes (predications) In DMRS, the role relates two nodes
# (predication) but they are followed by a scopal relationship. The
# only role which will be put here is the Carg.

#By now, we'll consider the roles not ERG-specific, but maybe we should.
# By now, we'll consider the roles not ERG-specific, but maybe we
# should.

delph:carg
a rdf:Property ;
Expand Down

0 comments on commit 9276032

Please sign in to comment.