Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint i18n main #208

Merged
merged 10 commits into from
Feb 3, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,6 @@ public static String sparqlNode(Node node, String varName) {
literalBuff.append("\"");
pyString(literalBuff, node.getLiteralLexicalForm());
literalBuff.append("\"");
/*
* UQAM-Bug-Correction
* reversing the condition tests.
* It is important to prioritize the language typology test in order to exploit the linguistic context in testing the type of data
*/
// if (node.getLiteralDatatypeURI() != null) {
// literalBuff.append("^^<").append(node.getLiteralDatatypeURI()).append(">");
// } else if (node.getLiteralLanguage() != null && node.getLiteralLanguage().length() > 0) {
// literalBuff.append("@").append(node.getLiteralLanguage());
// }
if (!StringUtils.isEmpty(node.getLiteralLanguage())) {
literalBuff.append("@").append(node.getLiteralLanguage());
} else if (node.getLiteralDatatypeURI() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ public boolean isResource() {
throw new UnsupportedOperationException();
}

@Override
public boolean isStmtResource() {
throw new UnsupportedOperationException();
}

public Literal inModel(Model model) {
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ public PrefixMapping lock() {
return inner.lock();
}

@Override
public boolean hasNoMappings() {
return inner.hasNoMappings();
}

@Override
public boolean samePrefixMappingAs(PrefixMapping other) {
return inner.samePrefixMappingAs(other);
Expand Down Expand Up @@ -684,6 +689,11 @@ public Resource createResource(String uri) {
return inner.createResource(uri);
}

@Override
public Resource createResource(Statement statement) {
return inner.createResource(statement);
}

@Override
public Property createProperty(String nameSpace, String localName) {
return inner.createProperty(nameSpace, localName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,11 @@ public PrefixMapping lock() {
return inner.lock();
}

@Override
public boolean hasNoMappings() {
return inner.hasNoMappings();
}

@Override
public boolean samePrefixMappingAs(PrefixMapping other) {
return inner.samePrefixMappingAs(other);
Expand Down Expand Up @@ -729,6 +734,11 @@ public Resource createResource(String uri) {
return inner.createResource(uri);
}

@Override
public Resource createResource(Statement statement) {
return inner.createResource(statement);
}

@Override
public Property createProperty(String nameSpace, String localName) {
return inner.createProperty(nameSpace, localName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,6 @@ protected static String sparqlNode(Node node, String varName) {
literalBuff.append("\"");
pyString(literalBuff, node.getLiteralLexicalForm());
literalBuff.append("\"");
/*
* UQAM-Bug-Correction
* reversing the condition tests.
* It is important to prioritize the language typology test in order to exploit the linguistic context in testing the type of data
*/
// if (node.getLiteralDatatypeURI() != null) {
// literalBuff.append("^^<").append(node.getLiteralDatatypeURI()).append(">");
// } else if (node.getLiteralLanguage() != null && node.getLiteralLanguage().length() > 0) {
// literalBuff.append("@").append(node.getLiteralLanguage());
// }
if (node.getLiteralLanguage() != null && node.getLiteralLanguage().length() > 0) {
literalBuff.append("@").append(node.getLiteralLanguage());
} else if (node.getLiteralDatatypeURI() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public boolean isResource() {
return false;
}

@Override
public boolean isStmtResource() {
return false;
}

@Override
public boolean isURIResource() {
return false;
Expand Down
18 changes: 14 additions & 4 deletions dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-arq</artifactId>
<version>3.11.0</version>
<version>3.16.0</version>
<exclusions>
<!-- Exclude OSGi bundles from jsonld-java -->
<exclusion>
Expand All @@ -192,23 +192,33 @@
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-core</artifactId>
<version>3.11.0</version>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-sdb</artifactId>
<version>3.11.0</version>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-tdb</artifactId>
<version>3.11.0</version>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>7.4.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.26</version>
</dependency>
<dependency>
<groupId>org.directwebremoting</groupId>
<artifactId>dwr</artifactId>
Expand Down