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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Nilsson
OwlCompiler
Commits
03cfb563
Commit
03cfb563
authored
18 years ago
by
Anders Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
Some fixes to be able to parse full v08a.owl. Still crashes though
parent
cd2d4ee6
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.bzrignore
+2
-0
2 additions, 0 deletions
.bzrignore
CompilerGeneration.jrag
+3
-0
3 additions, 0 deletions
CompilerGeneration.jrag
siaras/Siaras.jjt
+6
-4
6 additions, 4 deletions
siaras/Siaras.jjt
with
11 additions
and
4 deletions
.bzrignore
+
2
−
0
View file @
03cfb563
...
@@ -10,3 +10,5 @@ siaras/Siaras.ast
...
@@ -10,3 +10,5 @@ siaras/Siaras.ast
siaras/log.tmp
siaras/log.tmp
*Jambalaya.properties
*Jambalaya.properties
siaras/GeneratedAspects.jrag
siaras/GeneratedAspects.jrag
testontologies/*.xmi
testontologies/*.pprj
This diff is collapsed.
Click to expand it.
CompilerGeneration.jrag
+
3
−
0
View file @
03cfb563
...
@@ -213,6 +213,7 @@ aspect GenRewrites {
...
@@ -213,6 +213,7 @@ aspect GenRewrites {
public void OwlClassDecl.genRewrites(PrintStream pStream) {
public void OwlClassDecl.genRewrites(PrintStream pStream) {
String ind = " ";
String ind = " ";
int ix = 0;
int ix = 0;
// Specialize ComplexElements to the actual class in the ontology
pStream.println(ind(1)+"rewrite ComplexElement {");
pStream.println(ind(1)+"rewrite ComplexElement {");
pStream.println(ind(2)+"when (getOwlIdentifier().getIDENTIFIER().equals(\""+
pStream.println(ind(2)+"when (getOwlIdentifier().getIDENTIFIER().equals(\""+
name()+"\") && !(this instanceof Thing))");
name()+"\") && !(this instanceof Thing))");
...
@@ -250,6 +251,8 @@ aspect GenRewrites {
...
@@ -250,6 +251,8 @@ aspect GenRewrites {
pStream.println(ind(3)+"return node;");
pStream.println(ind(3)+"return node;");
pStream.println(ind(2)+"}");
pStream.println(ind(2)+"}");
pStream.println(ind(1)+"}");
pStream.println(ind(1)+"}");
// Rearrange device nodes on the AST to get away from the
// current diagonal style from Protege
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
siaras/Siaras.jjt
+
6
−
4
View file @
03cfb563
...
@@ -175,7 +175,7 @@ SPECIAL_TOKEN : /* COMMENTS */
...
@@ -175,7 +175,7 @@ SPECIAL_TOKEN : /* COMMENTS */
<DEFAULT, BOUNDS> TOKEN : /* IDENTIFIERS */
<DEFAULT, BOUNDS> TOKEN : /* IDENTIFIERS */
{
{
< IDENTIFIER: <LETTER> (<LETTER>|<DIGIT>)* >
< IDENTIFIER: <LETTER> (<LETTER>|<DIGIT>
|":"
)* >
|
|
< #LETTER:
< #LETTER:
[
[
...
@@ -194,7 +194,9 @@ SPECIAL_TOKEN : /* COMMENTS */
...
@@ -194,7 +194,9 @@ SPECIAL_TOKEN : /* COMMENTS */
"\uf900"-"\ufaff",
"\uf900"-"\ufaff",
"+",
"+",
"-",
"-",
"/"
"/",
",",
"."
]
]
>
>
|
|
...
@@ -228,8 +230,8 @@ SPECIAL_TOKEN : /* COMMENTS */
...
@@ -228,8 +230,8 @@ SPECIAL_TOKEN : /* COMMENTS */
| < LBRACKET : "[" >
| < LBRACKET : "[" >
| < RBRACKET : "]" >
| < RBRACKET : "]" >
| < SEMICOLON : ";" >
| < SEMICOLON : ";" >
| < COMMA : "," >
//
| < COMMA : "," >
| < DOT : "." >
//
| < DOT : "." >
}// SEPARATORS
}// SEPARATORS
...
...
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