Skip to content

Commit

Permalink
feat: add graph steps
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurcio committed Oct 19, 2018
1 parent 2dc95ef commit ec8a96c
Show file tree
Hide file tree
Showing 30 changed files with 10,310 additions and 0 deletions.
6,493 changes: 6,493 additions & 0 deletions plugins/GraphSemanticLevelMarker/etc/LinkedOpenVocabulary.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<SemanticLevelFramework>
<Frame id="1">
<Rule>s.getLiteral() != null</Rule>
<LevelValue>1</LevelValue>
<LevelDescription>sstamp:low</LevelDescription>
</Frame>
<Frame id="2">
<Rule>isVocabulary</Rule>
<LevelValue>2</LevelValue>
<LevelDescription>sstamp:medium</LevelDescription>
</Frame>
<Frame id="3">
<Rule>isOntology</Rule>
<LevelValue>3</LevelValue>
<LevelDescription>sstamp:high</LevelDescription>
</Frame>

</SemanticLevelFramework>

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions plugins/GraphSemanticLevelMarker/etc/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin
id="GraphSemanticLevelMarkerPlugin"
iconfile="iconGraphSemanticLevelMarker.png"
description="Graph Semantic Level Marker"
tooltip="Reads a RDF Graph, evaluate its semantic expressivity level and creates a new triple stamping its level."
category="LinkedDataBR"
classname="br.ufrj.ppgi.greco.kettle.GraphSemanticLevelMarkerStepMeta">
<libraries>
<library name="GraphSemanticLevelMarker.jar"/>
<library name="lib/KettlePluginTools-1.0.jar"/>
<library name="lib/jena-core-3.8.0.jar"/>
<library name="lib/jena-base-3.8.0.jar"/>
<library name="lib/jena-shaded-guava-3.8.0.jar"/>
</libraries>
</plugin>
139 changes: 139 additions & 0 deletions plugins/GraphSemanticLevelMarker/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>br.ufrj.ppgi.greco.kettle</groupId>
<artifactId>plugins</artifactId>
<version>2.0</version>
</parent>

<groupId>br.ufrj.ppgi.greco.kettle.GraphSemanticLevelMarker</groupId>
<artifactId>GraphSemanticLevelMarker</artifactId>
<version>1.0</version>
<name>GraphSemanticLevelMarker</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>copy-files-to-kettle</id>
<phase>install</phase>
<configuration>
<target name="copy-files-to-kettle">
<echo
message="Copying ${basedir}\etc\*.[png,xml,properties] to ${pdi.home}/${pdi.plugin.dir}" />
<copy todir="${pdi.home}/${pdi.plugin.dir}" overwrite="true">
<fileset dir="${basedir}/etc" includes="**/*.png,**/*.xml,**/*.properties" />
</copy>

<echo
message="Copying ${basedir}\libs\*.jar to ${pdi.home}/${pdi.plugin.dir}" />
<copy todir="${pdi.home}/${pdi.plugin.dir}/lib" overwrite="true">
<fileset dir="${project.build.directory}/lib" includes="**/*.jar" />
</copy>

<echo
message="Copying ${project.build.directory}\${project.build.finalName}.${project.packaging} to ${pdi.home}/${pdi.plugin.dir}" />
<copy
file="${project.build.directory}/${project.build.finalName}.${project.packaging}"
tofile="${pdi.home}/${pdi.plugin.dir}/${pdi.plugin.lib_name}.${project.packaging}"
overwrite="true" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>

<artifactItem>
<groupId>org.apache.jena</groupId>
<artifactId>jena-base</artifactId>
<version>${apache.jena.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</artifactItem>

<artifactItem>
<groupId>org.apache.jena</groupId>
<artifactId>jena-core</artifactId>
<version>${apache.jena.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</artifactItem>

<artifactItem>
<groupId>org.apache.jena</groupId>
<artifactId>jena-shaded-guava</artifactId>
<version>${apache.jena.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</artifactItem>

<artifactItem>
<groupId>br.ufrj.ppgi.greco.kettle</groupId>
<artifactId>KettlePluginTools</artifactId>
<version>1.0</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</artifactItem>

</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>plugin/*.*</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</build>

<dependencies>

<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<version>${apache.jena.version}</version>
<type>pom</type>
</dependency>

</dependencies>
</project>
Loading

0 comments on commit ec8a96c

Please sign in to comment.