Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TortugaAttack committed Apr 1, 2021
1 parent 13c257f commit 99db78d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
11 changes: 7 additions & 4 deletions exampleconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ types:
- http://dbpedia.org/ontology/Mayor
- http://dbpedia.org/ontology/Work
- http://dbpedia.org/ontology/Band
- http://dbpedia.org/ontology/Band
- http://dbpedia.org/ontology/MusicalArtist
- http://dbpedia.org/ontology/MusicalArtist
- http://dbpedia.org/ontology/Album
- http://dbpedia.org/ontology/Album
- http://dbpedia.org/ontology/Actor
- http://dbpedia.org/ontology/Actor
- http://dbpedia.org/ontology/MusicGenre
- http://dbpedia.org/ontology/MusicGenre
maxNoOfIndividuals: 5
maxNoOfIndividuals: 0
maxIndividualsPerExampleConcept: 30
percentageOfPositiveExamples: 0.5
percentageOfNegativeExamples: 0.5
maxNoOfExamples: 30
minNoOfExamples: 5
maxGenerateConcepts: 100
maxGenerateConcepts: 10
maxConceptLength: 8
maxDepth: 1
removeLiterals: true
namespace: http://dbpedia.org/ontology/
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
</developer>
</developers>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<log4j.version>2.13.3</log4j.version>
</properties>

Expand Down Expand Up @@ -214,8 +214,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<compilerArgs>
<arg>-parameters</arg>
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/org/dice_group/lpbenchgen/dl/OWL2SPARQL.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
* <p>
* <p>
* Copied the OWLClassExpressionToSPARQLConverter from https://github.com/SmartDataAnalytics/OWL2SPARQL and change some bits
*
* @author Lixi Alié Conrads
*/
**/
public class OWL2SPARQL implements OWLClassExpressionVisitor, OWLPropertyExpressionVisitor, OWLDataRangeVisitor{

private static final Logger logger = LoggerFactory.getLogger(OWLClassExpressionToSPARQLConverter.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Collection<String> createDistinctConcepts(int noOfConcepts){
continue;
}
try {
if (!retriever.retrieveIndividualsForConcept(concept, 1, 5).isEmpty()) {
if (!retriever.retrieveIndividualsForConcept(concept, 1, 2).isEmpty()) {

ret.add(parser.render(concept));
if (ret.size() >= noOfConcepts) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private List<String> createRequest(String sparqlQuery, int timeOut){
//System.out.println("Code: "+code+", CT: "+actualContentType);
//e.printStackTrace();
String id = UUID.randomUUID().toString();
LOGGER.warn("Could not execute request due to {}, see debug id:{}", e.getMessage(), id);
LOGGER.debug("Could not execute request due to {}, see debug id:{}", e.getMessage(), id);
LOGGER.debug(id+": ", e);
}
return ret;
Expand Down

0 comments on commit 99db78d

Please sign in to comment.