Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OwlCompiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Nilsson
OwlCompiler
Commits
7c758903
Commit
7c758903
authored
11 years ago
by
Administrator
Browse files
Options
Downloads
Patches
Plain Diff
Added a number of previously unknown keywords.
parent
ac5cebd6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
owl.ast
+7
-0
7 additions, 0 deletions
owl.ast
owl.jjt
+64
-2
64 additions, 2 deletions
owl.jjt
with
71 additions
and
2 deletions
owl.ast
+
7
−
0
View file @
7c758903
...
@@ -72,6 +72,7 @@ RdfProperty : ComplexElement;
...
@@ -72,6 +72,7 @@ RdfProperty : ComplexElement;
RdfRest : ComplexElement;
RdfRest : ComplexElement;
RdfType : ComplexElement;
RdfType : ComplexElement;
RdfsComment : ComplexElement;
RdfsComment : ComplexElement;
RdfsDatatype : ComplexElement;
RdfsDomain : ComplexElement;
RdfsDomain : ComplexElement;
RdfsLabel : ComplexElement;
RdfsLabel : ComplexElement;
RdfsRange : ComplexElement;
RdfsRange : ComplexElement;
...
@@ -96,14 +97,19 @@ OwlIntersectionOf : ComplexElement;
...
@@ -96,14 +97,19 @@ OwlIntersectionOf : ComplexElement;
OwlInverseOf : ComplexElement;
OwlInverseOf : ComplexElement;
OwlMinCardinality : ComplexElement;
OwlMinCardinality : ComplexElement;
OwlMaxCardinality : ComplexElement;
OwlMaxCardinality : ComplexElement;
OwlNamedIndividual : ComplexElement;
OwlObjectProperty : OwlProperty;
OwlObjectProperty : OwlProperty;
OwlOnClass : ComplexElement;
OwlOnDatatype : ComplexElement;
OwlOneOf : ComplexElement;
OwlOneOf : ComplexElement;
OwlOnProperty : OwlProperty;
OwlOnProperty : OwlProperty;
OwlQualifiedCardinality : ComplexElement;
OwlRestriction : ComplexElement;
OwlRestriction : ComplexElement;
OwlSomeValuesFrom : OwlValuesFrom;
OwlSomeValuesFrom : OwlValuesFrom;
OwlTransitiveProperty : ComplexElement;
OwlTransitiveProperty : ComplexElement;
OwlUnionOf : ComplexElement;
OwlUnionOf : ComplexElement;
OwlVersionInfo : ComplexElement;
OwlVersionInfo : ComplexElement;
OwlWithRestrictions : ComplexElement;
P1AnyOrder : ComplexElement;
P1AnyOrder : ComplexElement;
P1Components : ComplexElement;
P1Components : ComplexElement;
P1ComposedOf : ComplexElement;
P1ComposedOf : ComplexElement;
...
@@ -126,6 +132,7 @@ P1UntilProcess : ComplexElement;
...
@@ -126,6 +132,7 @@ P1UntilProcess : ComplexElement;
P1UntilCondition : ComplexElement;
P1UntilCondition : ComplexElement;
ProcessParticipant : ComplexElement;
ProcessParticipant : ComplexElement;
ProcessPerform : ComplexElement;
ProcessPerform : ComplexElement;
XsdMinInclusive : ComplexElement;
abstract SimpleElement : Element;
abstract SimpleElement : Element;
StringElement : SimpleElement ::= <LITERAL>;
StringElement : SimpleElement ::= <LITERAL>;
...
...
This diff is collapsed.
Click to expand it.
owl.jjt
+
64
−
2
View file @
7c758903
...
@@ -134,15 +134,20 @@ SPECIAL_TOKEN : /* COMMENTS */
...
@@ -134,15 +134,20 @@ SPECIAL_TOKEN : /* COMMENTS */
| < OWL_INVERSEOF : "owl:inverseOf" >
| < OWL_INVERSEOF : "owl:inverseOf" >
| < OWL_MAXCARDINALITY : "owl:maxCardinality" >
| < OWL_MAXCARDINALITY : "owl:maxCardinality" >
| < OWL_MINCARDINALITY : "owl:minCardinality" >
| < OWL_MINCARDINALITY : "owl:minCardinality" >
| < OWL_NAMEDINDIVIDUAL : "owl:NamedIndividual" >
| < OWL_OBJECTPROPERTY : "owl:ObjectProperty" >
| < OWL_OBJECTPROPERTY : "owl:ObjectProperty" >
| < OWL_ONPROPERTY : "owl:onProperty" >
| < OWL_ONPROPERTY : "owl:onProperty" >
| < OWL_ONCLASS : "owl:onClass" >
| < OWL_ONDATATYPE : "owl:onDatatype" >
| < OWL_ONEOF : "owl:oneOf" >
| < OWL_ONEOF : "owl:oneOf" >
| < OWL_ONTOLOGY : "owl:Ontology" >
| < OWL_ONTOLOGY : "owl:Ontology" >
| < OWL_QUALIFIEDCARDINALITY : "owl:qualifiedCardinality" >
| < OWL_RESTRICTION : "owl:Restriction" >
| < OWL_RESTRICTION : "owl:Restriction" >
| < OWL_SOMEVALUESFROM : "owl:someValuesFrom" >
| < OWL_SOMEVALUESFROM : "owl:someValuesFrom" >
| < OWL_TRANSITIVEPROPERTY : "owl:TransitiveProperty" >
| < OWL_TRANSITIVEPROPERTY : "owl:TransitiveProperty" >
| < OWL_UNIONOF : "owl:unionOf" >
| < OWL_UNIONOF : "owl:unionOf" >
| < OWL_VERSIONINFO : "owl:versionInfo" >
| < OWL_VERSIONINFO : "owl:versionInfo" >
| < OWL_WITHRESTRICTIONS : "owl:withRestrictions" >
| < P1_ANYORDER : "p1:Any-Order" >
| < P1_ANYORDER : "p1:Any-Order" >
| < P1_COMPONENTS : "p1:components" >
| < P1_COMPONENTS : "p1:components" >
| < P1_COMPOSEDOF : "p1:composedOf" >
| < P1_COMPOSEDOF : "p1:composedOf" >
...
@@ -177,6 +182,7 @@ SPECIAL_TOKEN : /* COMMENTS */
...
@@ -177,6 +182,7 @@ SPECIAL_TOKEN : /* COMMENTS */
| < RDF_RESOURCE : "rdf:resource" >
| < RDF_RESOURCE : "rdf:resource" >
| < RDF_TYPE : "rdf:type" >
| < RDF_TYPE : "rdf:type" >
| < RDFS_COMMENT : "rdfs:comment" >
| < RDFS_COMMENT : "rdfs:comment" >
| < RDFS_DATATYPE : "rdfs:Datatype" >
| < RDFS_DOMAIN : "rdfs:domain" >
| < RDFS_DOMAIN : "rdfs:domain" >
| < RDFS_LABEL : "rdfs:label" >
| < RDFS_LABEL : "rdfs:label" >
| < RDFS_RANGE : "rdfs:range" >
| < RDFS_RANGE : "rdfs:range" >
...
@@ -189,6 +195,7 @@ SPECIAL_TOKEN : /* COMMENTS */
...
@@ -189,6 +195,7 @@ SPECIAL_TOKEN : /* COMMENTS */
| < XMLNS : "xmlns" >
| < XMLNS : "xmlns" >
| < XMLNS_XML : "xmlns:xml" >
| < XMLNS_XML : "xmlns:xml" >
| < XMLNS_XX : "xmlns:" >
| < XMLNS_XX : "xmlns:" >
| < XSD_MININCLUSIVE : "xsd:minInclusive" >
// | < XMLNS_DAML : "xmlns:daml" >
// | < XMLNS_DAML : "xmlns:daml" >
// | < XMLNS_DC : "xmlns:dc" >
// | < XMLNS_DC : "xmlns:dc" >
// | < XMLNS_EXPR : "xmlns:expr" >
// | < XMLNS_EXPR : "xmlns:expr" >
...
@@ -433,6 +440,7 @@ void Element() : {}
...
@@ -433,6 +440,7 @@ void Element() : {}
| P1Element()
| P1Element()
| ProcessElement()
| ProcessElement()
| DiscardedElement()
| DiscardedElement()
| XsdElement()
))
))
| SimpleElement()
| SimpleElement()
}
}
...
@@ -734,14 +742,19 @@ void OwlElement() : {}
...
@@ -734,14 +742,19 @@ void OwlElement() : {}
| OwlInverseOf()
| OwlInverseOf()
| OwlMaxCardinality()
| OwlMaxCardinality()
| OwlMinCardinality()
| OwlMinCardinality()
| OwlNamedIndividual()
| OwlObjectProperty()
| OwlObjectProperty()
| OwlOneOf()
| OwlOneOf()
| OwlOnClass()
| OwlOnDatatype()
| OwlOnProperty()
| OwlOnProperty()
| OwlQualifiedCardinality()
| OwlRestriction()
| OwlRestriction()
| OwlSomeValuesFrom()
| OwlSomeValuesFrom()
| OwlTransitiveProperty()
| OwlTransitiveProperty()
| OwlUnionOf()
| OwlUnionOf()
| OwlVersionInfo()
| OwlVersionInfo()
| OwlWithRestrictions()
}
}
void OwlOntology() #OwlOntology : {}
void OwlOntology() #OwlOntology : {}
...
@@ -852,6 +865,12 @@ void OwlMinCardinality () #OwlMinCardinality : {}
...
@@ -852,6 +865,12 @@ void OwlMinCardinality () #OwlMinCardinality : {}
(">" ElementList() "</" <OWL_MINCARDINALITY> ">" | ElementList() "/>")
(">" ElementList() "</" <OWL_MINCARDINALITY> ">" | ElementList() "/>")
}
}
void OwlNamedIndividual () #OwlNamedIndividual : {}
{
<OWL_NAMEDINDIVIDUAL> AttributeList()
(">" ElementList() "</" <OWL_NAMEDINDIVIDUAL> ">" | ElementList() "/>")
}
void OwlObjectProperty () #OwlObjectProperty : {}
void OwlObjectProperty () #OwlObjectProperty : {}
{
{
<OWL_OBJECTPROPERTY> AttributeList()
<OWL_OBJECTPROPERTY> AttributeList()
...
@@ -864,12 +883,30 @@ void OwlOneOf () #OwlOneOf : {}
...
@@ -864,12 +883,30 @@ void OwlOneOf () #OwlOneOf : {}
(">" ElementList() "</" <OWL_ONEOF> ">" | ElementList() "/>")
(">" ElementList() "</" <OWL_ONEOF> ">" | ElementList() "/>")
}
}
void OwlOnClass () #OwlOnClass : {}
{
<OWL_ONCLASS> AttributeList()
(">" ElementList() "</" <OWL_ONCLASS> ">" | ElementList() "/>")
}
void OwlOnDatatype () #OwlOnDatatype : {}
{
<OWL_ONDATATYPE> AttributeList()
(">" ElementList() "</" <OWL_ONDATATYPE> ">" | ElementList() "/>")
}
void OwlOnProperty () #OwlOnProperty : {}
void OwlOnProperty () #OwlOnProperty : {}
{
{
<OWL_ONPROPERTY> AttributeList()
<OWL_ONPROPERTY> AttributeList()
(">" ElementList() "</" <OWL_ONPROPERTY> ">" | ElementList() "/>")
(">" ElementList() "</" <OWL_ONPROPERTY> ">" | ElementList() "/>")
}
}
void OwlQualifiedCardinality () #OwlQualifiedCardinality : {}
{
<OWL_QUALIFIEDCARDINALITY> AttributeList()
(">" ElementList() "</" <OWL_QUALIFIEDCARDINALITY> ">" | ElementList() "/>")
}
void OwlRestriction () #OwlRestriction : {}
void OwlRestriction () #OwlRestriction : {}
{
{
<OWL_RESTRICTION> AttributeList()
<OWL_RESTRICTION> AttributeList()
...
@@ -900,6 +937,12 @@ void OwlVersionInfo () #OwlVersionInfo : {}
...
@@ -900,6 +937,12 @@ void OwlVersionInfo () #OwlVersionInfo : {}
(">" ElementList() "</" <OWL_VERSIONINFO> ">" | ElementList() "/>")
(">" ElementList() "</" <OWL_VERSIONINFO> ">" | ElementList() "/>")
}
}
void OwlWithRestrictions () #OwlWithRestrictions : {}
{
<OWL_WITHRESTRICTIONS> AttributeList()
(">" ElementList() "</" <OWL_WITHRESTRICTIONS> ">" | ElementList() "/>")
}
void P1Element() : {}
void P1Element() : {}
{
{
P1AnyOrder()
P1AnyOrder()
...
@@ -1071,6 +1114,7 @@ void RdfElement() : {}
...
@@ -1071,6 +1114,7 @@ void RdfElement() : {}
| RdfProperty()
| RdfProperty()
| RdfRest()
| RdfRest()
| RdfsComment()
| RdfsComment()
| RdfsDatatype()
| RdfsDomain()
| RdfsDomain()
| RdfsLabel()
| RdfsLabel()
| RdfsRange()
| RdfsRange()
...
@@ -1115,6 +1159,12 @@ void RdfsComment() #RdfsComment : {}
...
@@ -1115,6 +1159,12 @@ void RdfsComment() #RdfsComment : {}
(">" ElementList() "</" <RDFS_COMMENT> ">" | ElementList() "/>")
(">" ElementList() "</" <RDFS_COMMENT> ">" | ElementList() "/>")
}
}
void RdfsDatatype() #RdfsDatatype : {}
{
<RDFS_DATATYPE> AttributeList()
(">" ElementList() "</" <RDFS_DATATYPE> ">" | ElementList() "/>")
}
void RdfsDomain() #RdfsDomain : {}
void RdfsDomain() #RdfsDomain : {}
{
{
<RDFS_DOMAIN> AttributeList()
<RDFS_DOMAIN> AttributeList()
...
@@ -1151,6 +1201,17 @@ void RdfsSubPropertyOf() #RdfsSubPropertyOf : {}
...
@@ -1151,6 +1201,17 @@ void RdfsSubPropertyOf() #RdfsSubPropertyOf : {}
(">" ElementList() "</" <RDFS_SUBPROPERTYOF> ">" | ElementList() "/>")
(">" ElementList() "</" <RDFS_SUBPROPERTYOF> ">" | ElementList() "/>")
}
}
void XsdElement() : {}
{
XsdMinInclusive()
}
void XsdMinInclusive() #XsdMinInclusive : {}
{
<XSD_MININCLUSIVE> AttributeList()
(">" ElementList() "</" <XSD_MININCLUSIVE> ">" | ElementList() "/>")
}
void AttributeList() #List : {}
void AttributeList() #List : {}
{
{
(Attribute())*
(Attribute())*
...
@@ -1366,3 +1427,4 @@ void Value() #Value : { Token t; }
...
@@ -1366,3 +1427,4 @@ void Value() #Value : { Token t; }
t = <STRING_LITERAL>
t = <STRING_LITERAL>
{jjtThis.setSTRING_LITERAL(t.image);}
{jjtThis.setSTRING_LITERAL(t.image);}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment