Skip to content

Commit

Permalink
Upgrade to OML 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
melaasar committed Nov 6, 2020
1 parent af359cb commit a2d307e
Show file tree
Hide file tree
Showing 39 changed files with 1,862 additions and 1,511 deletions.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ install: true
jdk:
- openjdk11

before_script:
- cd owl-adapter

script:
- ./gradlew build

Expand Down
10 changes: 6 additions & 4 deletions owl-adapter/build.gradle → build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ buildscript {
}

subprojects {
group = 'io.opencaesar.owl'
version = '0.7.11'
group = 'io.opencaesar.adapters'
version = '0.8.0'

ext.versions = [
oml: '0.7.+',
oml: '0.8.+',
oml_tools: '0.8.+',
owl: '5.1.+',
owl_tools: '0.7.+',
owl_tools: '+',
jcommander: '1.72',
log4j: '1.2.17',
slf4j: '1.7.30',
Expand All @@ -27,6 +28,7 @@ subprojects {

repositories {
mavenLocal()
maven { url 'https://dl.bintray.com/opencaesar/oml-tools' }
maven { url 'https://dl.bintray.com/opencaesar/owl-tools' }
maven { url 'https://dl.bintray.com/opencaesar/oml' }
mavenCentral()
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ sourceSets {
main {
java.srcDirs = ['src/main/java']
resources.srcDirs = ['src/main/resources']
xtendOutputDir = 'src/main/xtend-gen'
}
test {
java.srcDirs = ['src/test/java']
resources.srcDirs = ['src/test/resources']
xtendOutputDir = 'src/test/xtend-gen'
}
}

sourceSets.all {
resources.exclude '**/*.xtend', '**/*._trace'
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry excluding="**/*.xtend|**/*._trace" kind="src" output="bin/main" path="src/main/resources">
<classpathentry kind="src" output="bin/main" path="src/main/resources">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions oml2owl-gradle/src/main/resources/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.8.0
8 changes: 1 addition & 7 deletions owl-adapter/oml2owl/.classpath → oml2owl/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src/main/xtend-gen">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry excluding="**/*.xtend|**/*._trace" kind="src" output="bin/main" path="src/main/resources">
<classpathentry kind="src" output="bin/main" path="src/main/resources">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions owl-adapter/oml2owl/build.gradle → oml2owl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ applicationName = 'oml2owl'

dependencies {
implementation "io.opencaesar.oml:io.opencaesar.oml.dsl:${versions.oml}"
implementation "io.opencaesar.oml:oml-validate:${versions.oml_tools}"
implementation "io.opencaesar.owl:owl-close-world:${versions.owl_tools}"
implementation "net.sourceforge.owlapi:owlapi-distribution:${versions.owl}"
implementation "org.jgrapht:jgrapht-core:${versions.jgrapht}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,18 +286,21 @@ private final static HashMap<Relation, Graph<Relation, DefaultEdge>> getRelation
toStream(allOntologies.iterator()).forEach(g -> {
toStream(g.eAllContents()).filter(e -> e instanceof RelationEntity).map(e -> (RelationEntity) e)
.forEach(re -> {
final Relation f = re.getForward();
final Relation r = re.getReverse();
graph.addVertex(f);
final Relation f = re.getForwardRelation();
final Relation r = re.getReverseRelation();
if (Objects.nonNull(f))
graph.addVertex(f);
if (Objects.nonNull(r))
graph.addVertex(r);
OmlRead.getSpecializedTerms(re).forEach(s -> {
if (s instanceof RelationEntity) {
final RelationEntity sre = (RelationEntity) s;
final Relation sf = sre.getForward();
final Relation sr = sre.getReverse();
graph.addVertex(sf);
graph.addEdge(sf, f);
final Relation sf = sre.getForwardRelation();
final Relation sr = sre.getReverseRelation();
if (Objects.nonNull(f) && Objects.nonNull(sf)) {
graph.addVertex(sf);
graph.addEdge(sf, f);
}
if (Objects.nonNull(r) && Objects.nonNull(sr)) {
graph.addVertex(sr);
graph.addEdge(sr, r);
Expand Down
Loading

0 comments on commit a2d307e

Please sign in to comment.