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;
RdfFirst : ComplexElement;
RdfRest : ComplexElement;
RdfType : ComplexElement;
RdfsComment : ComplexElement;
RdfsDomain : ComplexElement;
RdfsRange : ComplexElement;
RdfsSubClassOf : ComplexElement;
......@@ -50,6 +51,7 @@ XmlBase : Attribute;
Xmlns : Attribute;
XmlnsDaml : Attribute;
XmlnsDc : Attribute;
XmlnsP1 : Attribute;
XmlnsProtege : Attribute;
XmlnsRdf : Attribute;
XmlnsXsd : Attribute;
......
......@@ -43,6 +43,7 @@ SPECIAL_TOKEN : /* COMMENTS */
{
// <SLASH_STAR_COMMENT : "/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/" >
< "<!--" ( ~["-"] | ( "-" ~["-"] ) )* "-->">
| < "<rdfs:comment" ( ~["<"] | ( "<" ~["/"] ) )* "</rdfs:comment>" >
// <XML_COMMENT : "<!--" (~["-","-",">"])* "-->" >
}// COMMENTS
......@@ -82,6 +83,7 @@ SPECIAL_TOKEN : /* COMMENTS */
| < RDF_PARSETYPE : "rdf:parseType" >
| < RDF_RESOURCE : "rdf:resource" >
| < RDF_TYPE : "rdf:type" >
| < RDFS_COMMENT : "rdfs:comment" >
| < RDFS_DOMAIN : "rdfs:domain" >
| < RDFS_RANGE : "rdfs:range" >
| < RDFS_SUBCLASSOF : "rdfs:subClassOf" >
......@@ -92,6 +94,7 @@ SPECIAL_TOKEN : /* COMMENTS */
| < XMLNS : "xmlns" >
| < XMLNS_DAML : "xmlns:daml" >
| < XMLNS_DC : "xmlns:dc" >
| < XMLNS_P1 : "xmlns:p1" >
| < XMLNS_PROTEGE : "xmlns:protege" >
| < XMLNS_RDF : "xmlns:rdf" >
| < XMLNS_XSD : "xmlns:xsd" >
......@@ -205,15 +208,15 @@ SPECIAL_TOKEN : /* COMMENTS */
<DEFAULT,BOUNDS> TOKEN : /* SEPARATORS */
{
< LPAREN : "(" >
| < RPAREN : ")" >
| < LBRACE : "{" >
// < LPAREN : "(" >
// | < RPAREN : ")" >
< LBRACE : "{" >
| < RBRACE : "}" >
| < LBRACKET : "[" >
| < RBRACKET : "]" >
| < SEMICOLON : ";" >
| < COMMA : "," >
| < DOT : "." >
// | < COMMA : "," >
// | < DOT : "." >
}// SEPARATORS
......@@ -259,6 +262,12 @@ SPECIAL_TOKEN : /* COMMENTS */
}// OPERATORS
// <DEFAULT,BOUNDS> TOKEN : /* TEXT */
// {
// < TEXT : <LETTER> (~["<",">"])* >
// }// TEXT
//--------------------------------------------------------------------//
// THE OWL LANGUAGE GRAMMAR //
//--------------------------------------------------------------------//
......@@ -460,6 +469,7 @@ void RdfElement() : {}
RdfType()
| RdfFirst()
| RdfRest()
| RdfsComment()
| RdfsDomain()
| RdfsRange()
| RdfsSubClassOf()
......@@ -484,6 +494,12 @@ void RdfRest() #RdfRest : {}
(">" ElementList() "</" <RDF_REST> ">" | ElementList() "/>")
}
void RdfsComment() #RdfsComment : {}
{
<RDFS_COMMENT> AttributeList()
(">" ElementList() "</" <RDFS_COMMENT> ">" | ElementList() "/>")
}
void RdfsDomain() #RdfsDomain : {}
{
<RDFS_DOMAIN> AttributeList()
......@@ -576,6 +592,7 @@ void XmlnsAttribute() : {}
| XmlnsDaml()
| XmlnsDc()
| XmlnsOwl()
| XmlnsP1()
| XmlnsProtege()
| XmlnsRdf()
| XmlnsRdfs()
......@@ -597,6 +614,11 @@ void XmlnsDc() #XmlnsDc : {}
<XMLNS_DC> <ASSIGN> Value()
}
void XmlnsP1() #XmlnsP1 : {}
{
<XMLNS_P1> <ASSIGN> Value()
}
void XmlnsProtege() #XmlnsProtege : {}
{
<XMLNS_PROTEGE> <ASSIGN> Value()
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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