Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
adding external links support
Browse files Browse the repository at this point in the history
  • Loading branch information
José Ortiz authored and José Ortiz committed Feb 17, 2016
1 parent 36b2d9c commit fd689aa
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 195 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void process() throws KettleException {
while (rsClass.next()) {
ClassificationBean classBean = new ClassificationBean(rsClass);
String relativeURI = classBean.getRelativeUri() != null && classBean.getRelativeUri().length() > 0
&& classBean.getRelativeUri().matches("([a-z0-9]*)(\\/|#)") ? classBean.getRelativeUri() : "";
&& classBean.getRelativeUri().matches("(#)?([a-z0-9]*)(\\/|#)") ? classBean.getRelativeUri() : "";
String id = classBean.getId();
String entityId = classBean.getUriFieldId();
String entityRealId = "";
Expand Down Expand Up @@ -126,7 +126,7 @@ public void process() throws KettleException {
)
.addProperty(RR.subjectMap,
r2rmlModel.createResource()
.addProperty(RR.template, this.baseURI + relativeURI + "{" + id + "_ID}")
.addProperty((relativeURI.compareTo("#external#")==0)?RR.column:RR.template, (relativeURI.compareTo("#external#")==0)?"" + id + "_ID":this.baseURI + relativeURI + "{" + id + "_ID}")
.addProperty(RR.cclass, /*this.getOntologyURI(vocPrefix) +*/
ResourceFactory.createProperty(prefixes.get(vocPrefix)[0],
vocEntity.split(prefixes.get(vocPrefix)[0])[1])
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</plugins>
</build>
<properties>
<pdiDirectory>${project.build.directory}</pdiDirectory>
<pdiDirectory>/ExtBiblioDigital/Pentaho/data-integration</pdiDirectory>
<ucuenca.lod.version>${project.version}</ucuenca.lod.version>
<pentaho.kettle.version>5.1.preview.506</pentaho.kettle.version>
<apache.jena.version>2.12.0</apache.jena.version>
Expand Down
43 changes: 43 additions & 0 deletions pom.xml~
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ucuenca</groupId>
<artifactId>ucuenca</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>LOD Platform UCUENCA</name>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<pdiDirectory>${project.build.directory}</pdiDirectory>
<ucuenca.lod.version>${project.version}</ucuenca.lod.version>
<pentaho.kettle.version>5.1.preview.506</pentaho.kettle.version>
<apache.jena.version>2.12.0</apache.jena.version>
<h2.database.version>1.4.184</h2.database.version>
<antidot.db2triples.version>1.0.3-SNAPSHOT</antidot.db2triples.version>
<openrdf.sesame.version>2.6.10</openrdf.sesame.version>
<xml.apis.version>1.0.b2</xml.apis.version>
<org.eclipse.swt.version>3.7</org.eclipse.swt.version>
<commons.lang.version>2.6</commons.lang.version>
</properties>
<modules>
<module>no-released-libs</module>
<module>tools</module>
<module>specification</module>
<module>modeling</module>
<module>generation</module>
<module>publication</module>
<module>exploitation</module>
</modules>
</project>
Binary file not shown.
Loading

0 comments on commit fd689aa

Please sign in to comment.