Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eclipse-pmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<rulesets>
<ruleset name="Kode Konveyor ruleset" ref="konveyor-pmdrules/target/classes/konveyor.xml" refcontext="workspace" />
</rulesets>
</eclipse-pmd>
</eclipse-pmd>

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ xslt
.idea
.konveyor
pom.xml.versionsBackup
.settings
3 changes: 0 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
Knowledge representation based on experiences of metamodel-based architecture modeling and nadural language dictionaries.

(No point to look at the code. This project is long abandoned, if the folowing gets implemented that will probably be done in another project.
I am just using this README to write up my thoughts.)

Dictionaries for natural languages are hard to implement for the following reasons:
1. A word usually have different meanings
2. How do you describe the meaning of a word? The best approach so far is that of wordnet: you basically define relationships between words.
Expand Down
1 change: 0 additions & 1 deletion inez.model/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="lib" path="target/classes" sourcepath="target/classes"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
3 changes: 2 additions & 1 deletion inez.model/.eclipse-pmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
<ruleset name="Kode Konveyor ruleset" ref=".konveyor/konveyor.xml" refcontext="project" />
<ruleset name="Upstream rules" ref=".konveyor/upstream.xml" refcontext="project" />
</rulesets>
</eclipse-pmd>
</eclipse-pmd>

9 changes: 4 additions & 5 deletions inez.model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>io.github.magwas</groupId>
<artifactId>inez.model</artifactId>
<version>${project.version}</version>
<version>0.0.1</version>
<name>${project.artifactId}</name>
<description>model layer for Inez</description>
<url>https://github.com/kode-konveyor/inez-server.git</url>
Expand Down Expand Up @@ -39,7 +39,7 @@
<site>
<id>website</id>
<name>Project site</name>
<url>https://repo.kodekonveyor.com/${project.artifactId}</url>
<url>https://repo.kdea.hu/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
Expand All @@ -53,7 +53,7 @@
<groupId>io.github.magwas</groupId>
<artifactId>konveyor.base</artifactId>
<version>${version.konveyor}</version>
<classifier>testing</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -65,13 +65,12 @@
<groupId>io.github.magwas</groupId>
<artifactId>inez.parser</artifactId>
<version>${project.version}</version>
<classifier>testing</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-keyvalue</artifactId>
<version>${version.spring-data}</version>
</dependency>
</dependencies>
</project>
3 changes: 3 additions & 0 deletions inez.model/src/main/java/io/github/magwas/inez/Inez.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.magwas.inez;

import java.io.IOException;
import java.util.Collection;
import java.util.Optional;
import java.util.Set;
Expand Down Expand Up @@ -33,4 +34,6 @@ public interface Inez {
BridiElement root();

BridiElement byId(String id);

void initialize() throws IOException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public final class InezImpl implements Inez {

private InezImpl() {}

@Override
public void initialize() throws IOException {
bridiElementSystemInitialization.apply();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public class GetBridiElementRepresentationService {
public String apply(final String id) throws Error {
Optional<Sumti> sumtiP = sumtiRepository.findById(id);
if (sumtiP.isEmpty()) {
sumtiRepository.findAll().forEach(x -> System.err.println("s:" + x));
throw new Error("no representation for: " + id);
return "(" + id + ")";
}
return sumtiP.get().representation();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ public class IsOfTypeService implements ElementConstants {

boolean apply(String id, final String typeId) {
LogUtil.debug("IsOfTypeService", id, typeId);
String theId = id;
for (int i = 0; i < MAX_TYPE_DEPTH; i++) {
if (id.equals(typeId)) return true;
if (THING_ID.equals(id)) return false;
id = getBridiElementTypeId.apply(id);
LogUtil.debug("id:", id);
if (theId.equals(typeId)) return true;
if (THING_ID.equals(theId)) return false;
theId = getBridiElementTypeId.apply(theId);
LogUtil.debug("id:", theId);
}
throw new Error("Probable type loop");
}
Expand Down
3 changes: 2 additions & 1 deletion inez.parser/.eclipse-pmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
<ruleset name="Kode Konveyor ruleset" ref=".konveyor/konveyor.xml" refcontext="project" />
<ruleset name="Upstream rules" ref=".konveyor/upstream.xml" refcontext="project" />
</rulesets>
</eclipse-pmd>
</eclipse-pmd>

1 change: 1 addition & 0 deletions inez.parser/.settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding//target/generated-sources/main=UTF-8
encoding/<project>=UTF-8
8 changes: 3 additions & 5 deletions inez.parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
<version>0.0.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>io.github.magwas</groupId>
<artifactId>inez.parser</artifactId>
<version>${project.version}</version>
<name>${project.artifactId}</name>
<description>Parser for Inez</description>
<url>https://github.com/kode-konveyor/inez-server.git</url>
Expand Down Expand Up @@ -39,7 +37,7 @@
<site>
<id>website</id>
<name>Project site</name>
<url>https://repo.kodekonveyor.com/${project.artifactId}</url>
<url>https://repo.kdea.hu/${project.artifactId}</url>
</site>
</distributionManagement>
<properties>
Expand All @@ -50,7 +48,6 @@
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${version.antlr4}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -67,7 +64,7 @@
<groupId>io.github.magwas</groupId>
<artifactId>konveyor.base</artifactId>
<version>${version.konveyor}</version>
<classifier>testing</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -91,6 +88,7 @@
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>${version.antlr4}</version>
<executions>
<execution>
<goals>
Expand Down
40 changes: 40 additions & 0 deletions inez.ui/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
9 changes: 9 additions & 0 deletions inez.ui/.eclipse-pmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
<analysis enabled="true" />
<rulesets>
<ruleset name="Kode Konveyor ruleset" ref=".konveyor/konveyor.xml" refcontext="project" />
<ruleset name="Upstream rules" ref=".konveyor/upstream.xml" refcontext="project" />
</rulesets>
</eclipse-pmd>

26 changes: 26 additions & 0 deletions inez.ui/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>inez.ui</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
<buildCommand>
<name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions inez.ui/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UI of Inez

112 changes: 112 additions & 0 deletions inez.ui/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.magwas</groupId>
<artifactId>inez</artifactId>
<version>0.0.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>inez.ui</artifactId>
<name>${project.artifactId}</name>
<description>ui for Inez</description>
<url>https://github.com/kode-konveyor/inez-server.git</url>
<licenses>
<license>
<name>GPL affero</name>
<url>https://www.gnu.org/licenses/agpl-3.0.en.html</url>
<comments>GNU Affero General Public License</comments>
</license>
</licenses>
<developers>
<developer>
<name>Árpád Magosányi</name>
<email>[email protected]</email>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/kode-konveyor/inez-server.git</connection>
<developerConnection>scm:git:https://github.com/kode-konveyor/inez-server.git</developerConnection>
<url>https://github.com/kode-konveyor/inez-server.git</url>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/kode-konveyor/inez-server/issues</url>
</issueManagement>
<distributionManagement>
<site>
<id>website</id>
<name>Project site</name>
<url>https://repo.kdea.hu/${project.artifactId}</url>
</site>
</distributionManagement>
<properties>
<gluonfx.plugin.version>1.0.27</gluonfx.plugin.version>
<jpackageInputDirectory>${project.build.directory}/jpackage-input</jpackageInputDirectory>
<jpro.version>2024.4.0</jpro.version>
<mainclass>io.github.magwas.testfx.HelloWorldButton</mainclass>
<mainmodule>io.github.magwas.testfx/HelloWorldButton</mainmodule>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>io.github.magwas</groupId>
<artifactId>konveyor.base</artifactId>
<version>${version.konveyor}</version>
<classifier>runtime</classifier>
</dependency>
<dependency>
<groupId>io.github.magwas</groupId>
<artifactId>konveyor.base</artifactId>
<version>${version.konveyor}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.github.magwas</groupId>
<artifactId>inez.model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.github.magwas</groupId>
<artifactId>inez.parser</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.github.magwas</groupId>
<artifactId>inez.model</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${java.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${java.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-keyvalue</artifactId>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs combine.self="override"/>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading