Commit cf190438 authored by Anders Nilsson's avatar Anders Nilsson

Started to update to the new ontology

parent d3d98efd
...@@ -11,6 +11,7 @@ RdfDeclaration : ComplexElement; ...@@ -11,6 +11,7 @@ RdfDeclaration : ComplexElement;
RdfFirst : ComplexElement; RdfFirst : ComplexElement;
RdfRest : ComplexElement; RdfRest : ComplexElement;
RdfType : ComplexElement; RdfType : ComplexElement;
RdfsComment : ComplexElement;
RdfsDomain : ComplexElement; RdfsDomain : ComplexElement;
RdfsRange : ComplexElement; RdfsRange : ComplexElement;
RdfsSubClassOf : ComplexElement; RdfsSubClassOf : ComplexElement;
...@@ -50,6 +51,7 @@ XmlBase : Attribute; ...@@ -50,6 +51,7 @@ XmlBase : Attribute;
Xmlns : Attribute; Xmlns : Attribute;
XmlnsDaml : Attribute; XmlnsDaml : Attribute;
XmlnsDc : Attribute; XmlnsDc : Attribute;
XmlnsP1 : Attribute;
XmlnsProtege : Attribute; XmlnsProtege : Attribute;
XmlnsRdf : Attribute; XmlnsRdf : Attribute;
XmlnsXsd : Attribute; XmlnsXsd : Attribute;
......
...@@ -43,6 +43,7 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -43,6 +43,7 @@ SPECIAL_TOKEN : /* COMMENTS */
{ {
// <SLASH_STAR_COMMENT : "/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/" > // <SLASH_STAR_COMMENT : "/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/" >
< "<!--" ( ~["-"] | ( "-" ~["-"] ) )* "-->"> < "<!--" ( ~["-"] | ( "-" ~["-"] ) )* "-->">
| < "<rdfs:comment" ( ~["<"] | ( "<" ~["/"] ) )* "</rdfs:comment>" >
// <XML_COMMENT : "<!--" (~["-","-",">"])* "-->" > // <XML_COMMENT : "<!--" (~["-","-",">"])* "-->" >
}// COMMENTS }// COMMENTS
...@@ -82,6 +83,7 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -82,6 +83,7 @@ SPECIAL_TOKEN : /* COMMENTS */
| < RDF_PARSETYPE : "rdf:parseType" > | < RDF_PARSETYPE : "rdf:parseType" >
| < RDF_RESOURCE : "rdf:resource" > | < RDF_RESOURCE : "rdf:resource" >
| < RDF_TYPE : "rdf:type" > | < RDF_TYPE : "rdf:type" >
| < RDFS_COMMENT : "rdfs:comment" >
| < RDFS_DOMAIN : "rdfs:domain" > | < RDFS_DOMAIN : "rdfs:domain" >
| < RDFS_RANGE : "rdfs:range" > | < RDFS_RANGE : "rdfs:range" >
| < RDFS_SUBCLASSOF : "rdfs:subClassOf" > | < RDFS_SUBCLASSOF : "rdfs:subClassOf" >
...@@ -92,6 +94,7 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -92,6 +94,7 @@ SPECIAL_TOKEN : /* COMMENTS */
| < XMLNS : "xmlns" > | < XMLNS : "xmlns" >
| < XMLNS_DAML : "xmlns:daml" > | < XMLNS_DAML : "xmlns:daml" >
| < XMLNS_DC : "xmlns:dc" > | < XMLNS_DC : "xmlns:dc" >
| < XMLNS_P1 : "xmlns:p1" >
| < XMLNS_PROTEGE : "xmlns:protege" > | < XMLNS_PROTEGE : "xmlns:protege" >
| < XMLNS_RDF : "xmlns:rdf" > | < XMLNS_RDF : "xmlns:rdf" >
| < XMLNS_XSD : "xmlns:xsd" > | < XMLNS_XSD : "xmlns:xsd" >
...@@ -205,15 +208,15 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -205,15 +208,15 @@ SPECIAL_TOKEN : /* COMMENTS */
<DEFAULT,BOUNDS> TOKEN : /* SEPARATORS */ <DEFAULT,BOUNDS> TOKEN : /* SEPARATORS */
{ {
< LPAREN : "(" > // < LPAREN : "(" >
| < RPAREN : ")" > // | < RPAREN : ")" >
| < LBRACE : "{" > < LBRACE : "{" >
| < RBRACE : "}" > | < RBRACE : "}" >
| < LBRACKET : "[" > | < LBRACKET : "[" >
| < RBRACKET : "]" > | < RBRACKET : "]" >
| < SEMICOLON : ";" > | < SEMICOLON : ";" >
| < COMMA : "," > // | < COMMA : "," >
| < DOT : "." > // | < DOT : "." >
}// SEPARATORS }// SEPARATORS
...@@ -259,6 +262,12 @@ SPECIAL_TOKEN : /* COMMENTS */ ...@@ -259,6 +262,12 @@ SPECIAL_TOKEN : /* COMMENTS */
}// OPERATORS }// OPERATORS
// <DEFAULT,BOUNDS> TOKEN : /* TEXT */
// {
// < TEXT : <LETTER> (~["<",">"])* >
// }// TEXT
//--------------------------------------------------------------------// //--------------------------------------------------------------------//
// THE OWL LANGUAGE GRAMMAR // // THE OWL LANGUAGE GRAMMAR //
//--------------------------------------------------------------------// //--------------------------------------------------------------------//
...@@ -460,6 +469,7 @@ void RdfElement() : {} ...@@ -460,6 +469,7 @@ void RdfElement() : {}
RdfType() RdfType()
| RdfFirst() | RdfFirst()
| RdfRest() | RdfRest()
| RdfsComment()
| RdfsDomain() | RdfsDomain()
| RdfsRange() | RdfsRange()
| RdfsSubClassOf() | RdfsSubClassOf()
...@@ -484,6 +494,12 @@ void RdfRest() #RdfRest : {} ...@@ -484,6 +494,12 @@ void RdfRest() #RdfRest : {}
(">" ElementList() "</" <RDF_REST> ">" | ElementList() "/>") (">" ElementList() "</" <RDF_REST> ">" | ElementList() "/>")
} }
void RdfsComment() #RdfsComment : {}
{
<RDFS_COMMENT> AttributeList()
(">" ElementList() "</" <RDFS_COMMENT> ">" | ElementList() "/>")
}
void RdfsDomain() #RdfsDomain : {} void RdfsDomain() #RdfsDomain : {}
{ {
<RDFS_DOMAIN> AttributeList() <RDFS_DOMAIN> AttributeList()
...@@ -576,6 +592,7 @@ void XmlnsAttribute() : {} ...@@ -576,6 +592,7 @@ void XmlnsAttribute() : {}
| XmlnsDaml() | XmlnsDaml()
| XmlnsDc() | XmlnsDc()
| XmlnsOwl() | XmlnsOwl()
| XmlnsP1()
| XmlnsProtege() | XmlnsProtege()
| XmlnsRdf() | XmlnsRdf()
| XmlnsRdfs() | XmlnsRdfs()
...@@ -597,6 +614,11 @@ void XmlnsDc() #XmlnsDc : {} ...@@ -597,6 +614,11 @@ void XmlnsDc() #XmlnsDc : {}
<XMLNS_DC> <ASSIGN> Value() <XMLNS_DC> <ASSIGN> Value()
} }
void XmlnsP1() #XmlnsP1 : {}
{
<XMLNS_P1> <ASSIGN> Value()
}
void XmlnsProtege() #XmlnsProtege : {} void XmlnsProtege() #XmlnsProtege : {}
{ {
<XMLNS_PROTEGE> <ASSIGN> Value() <XMLNS_PROTEGE> <ASSIGN> Value()
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment