Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Nilsson
OwlCompiler
Commits
8375b52d
Commit
8375b52d
authored
Feb 11, 2007
by
Anders Nilsson
Browse files
Working on making ONtologyCompiler fit for inclusion in skillserver
parent
3eeed532
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
.bzrignore
View file @
8375b52d
...
...
@@ -14,3 +14,4 @@ testontologies/*.xmi
testontologies/*.pprj
siaras/ontology.owl
siaras/javadoc
siaras/OntologyCompiler.jar
siaras/GenOntology.java
View file @
8375b52d
...
...
@@ -6,11 +6,24 @@
*/
import
AST.Start
;
import
AST.SiarasParser
;
import
AST.ParseException
;
import
java.io.*
;
public
class
GenOntology
extends
Parser
{
public
static
void
main
(
String
args
[])
{
Start
ast
=
parse
(
args
);
Start
ast
=
null
;
try
{
Reader
r
=
new
FileReader
(
args
[
0
]);
SiarasParser
parser
=
new
SiarasParser
(
r
);
ast
=
parser
.
Start
();
}
catch
(
ParseException
e
)
{
System
.
out
.
println
(
e
.
getMessage
());
}
catch
(
FileNotFoundException
e
)
{
System
.
err
.
println
(
"file "
+
args
[
0
]
+
" not found"
);
}
String
fileName
=
null
;
try
{
...
...
siaras/OntologyGeneration.jrag
View file @
8375b52d
...
...
@@ -49,7 +49,7 @@ aspect OntologyGeneration {
// }
public void ClassUse.genOntology(String ind, PrintStream pStream) {
pStream.print(ind+"<
(CU)
"+name());
pStream.print(ind+"<"+name());
for (int i=0; i<getNumAttribute(); i++) {
pStream.print(" ");
getAttribute(i).genOntology(pStream);
...
...
siaras/Rewrites.jrag
View file @
8375b52d
...
...
@@ -21,6 +21,7 @@ aspect Qualification {
name().equals("hasSubskill") ||
name().equals("hasEditable") ||
name().equals("isPropertyOf") ||
name().equals("isSubskillOf") ||
name().equals("isSkillOf")) &&
getNumElement()==1 &&
getElement(0) instanceof ClassUse)
...
...
siaras/build.xml
View file @
8375b52d
...
...
@@ -98,9 +98,9 @@
</target>
<target
name=
"jar"
depends=
"build"
>
<jar
destfile=
"
PrettyPrint
.jar"
basedir=
"."
includes=
"**/*.class"
excludes=
"test/**"
>
<jar
destfile=
"
OntologyCompiler
.jar"
basedir=
"."
includes=
"**/*.class"
excludes=
"test/**"
>
<manifest>
<attribute
name=
"Main-Class"
value=
"
JavaPrettyPrinter
"
/>
<attribute
name=
"Main-Class"
value=
"
GenOntology
"
/>
</manifest>
</jar>
</target>
...
...
testontologies/v094.owl
0 → 100644
View file @
8375b52d
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment