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
ece46d6f
Commit
ece46d6f
authored
18 years ago
by
Anders Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
Just synching
parent
f4ed3bc6
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
+1
-0
1 addition, 0 deletions
.bzrignore
DumpClasses.jrag
+2
-2
2 additions, 2 deletions
DumpClasses.jrag
Types.jrag
+9
-9
9 additions, 9 deletions
Types.jrag
with
12 additions
and
11 deletions
.bzrignore
+
1
−
0
View file @
ece46d6f
...
@@ -3,3 +3,4 @@ parser/semantic.cache
...
@@ -3,3 +3,4 @@ parser/semantic.cache
AST
AST
*.class
*.class
semantic.cache
semantic.cache
plugins
This diff is collapsed.
Click to expand it.
DumpClasses.jrag
+
2
−
2
View file @
ece46d6f
...
@@ -17,7 +17,7 @@ aspect DumpClasses {
...
@@ -17,7 +17,7 @@ aspect DumpClasses {
pStream.print(getId());
pStream.print(getId());
pStream.print(" : "+getSuperClass().getId());
pStream.print(" : "+getSuperClass().getId());
pStream.print(" ::= ");
pStream.print(" ::= ");
Properties props = get
Functional
Properties();
Properties props = getProperties();
for (int i=0; i<props.getNumProperty(); i++) {
for (int i=0; i<props.getNumProperty(); i++) {
pStream.print("<");
pStream.print("<");
pStream.print(props.getProperty(i).getId());
pStream.print(props.getProperty(i).getId());
...
...
This diff is collapsed.
Click to expand it.
Types.jrag
+
9
−
9
View file @
ece46d6f
...
@@ -37,12 +37,12 @@ aspect Types {
...
@@ -37,12 +37,12 @@ aspect Types {
return new OwlClassDecl(new List(), new List(), "_Unknown_");
return new OwlClassDecl(new List(), new List(), "_Unknown_");
}
}
syn lazy Properties OwlClassDecl.get
Functional
Properties() {
syn lazy Properties OwlClassDecl.getProperties() {
List l = new List();
List l = new List();
getTopElement().collect
Functional
Properties(l);
getTopElement().collect
Object
Properties(l);
Properties p = new Properties();
Properties p = new Properties();
for (int i=0; i<l.getNumChild(); i++) {
for (int i=0; i<l.getNumChild(); i++) {
Owl
Functional
Property op = (Owl
Functional
Property) l.getChild(i);
Owl
Object
Property op = (Owl
Object
Property) l.getChild(i);
if (op.domainIncludes(this)) {
if (op.domainIncludes(this)) {
p.addProperty(op);
p.addProperty(op);
}
}
...
@@ -52,13 +52,13 @@ aspect Types {
...
@@ -52,13 +52,13 @@ aspect Types {
}
}
aspect Properties {
aspect Properties {
void ASTNode.collect
Functional
Properties(List l) {
void ASTNode.collect
Object
Properties(List l) {
for (int i=0; i<getNumChild(); i++) {
for (int i=0; i<getNumChild(); i++) {
getChild(i).collect
Functional
Properties(l);
getChild(i).collect
Object
Properties(l);
}
}
}
}
void Owl
Functional
Property.collect
Functional
Properties(List l) {
void Owl
Object
Property.collect
Object
Properties(List l) {
l.add(this);
l.add(this);
}
}
...
@@ -66,7 +66,7 @@ aspect Properties {
...
@@ -66,7 +66,7 @@ aspect Properties {
return false;
return false;
}
}
boolean Owl
Functional
Property.domainIncludes(OClass clazz) {
boolean Owl
Object
Property.domainIncludes(OClass clazz) {
for (int i=0; i<getNumElement(); i++) {
for (int i=0; i<getNumElement(); i++) {
if (getElement(i) instanceof RdfsDomain) {
if (getElement(i) instanceof RdfsDomain) {
return ((RdfsDomain) getElement(i)).domainIncludes(clazz);
return ((RdfsDomain) getElement(i)).domainIncludes(clazz);
...
@@ -107,7 +107,7 @@ aspect Properties {
...
@@ -107,7 +107,7 @@ aspect Properties {
syn lazy RdfsRange Element.range() = null;
syn lazy RdfsRange Element.range() = null;
eq Owl
Functional
Property.range() {
eq Owl
Object
Property.range() {
for (int i=0; i<getNumElement(); i++) {
for (int i=0; i<getNumElement(); i++) {
if (getElement(i) instanceof RdfsRange) {
if (getElement(i) instanceof RdfsRange) {
return (RdfsRange) getElement(i);
return (RdfsRange) getElement(i);
...
...
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