Skip to content

Commit 99db78d

Browse files
author
TortugaAttack
committed
1.0
1 parent 13c257f commit 99db78d

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

exampleconfig.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,21 @@ types:
1111
- http://dbpedia.org/ontology/Mayor
1212
- http://dbpedia.org/ontology/Work
1313
- http://dbpedia.org/ontology/Band
14+
- http://dbpedia.org/ontology/Band
15+
- http://dbpedia.org/ontology/MusicalArtist
1416
- http://dbpedia.org/ontology/MusicalArtist
1517
- http://dbpedia.org/ontology/Album
18+
- http://dbpedia.org/ontology/Album
1619
- http://dbpedia.org/ontology/Actor
20+
- http://dbpedia.org/ontology/Actor
21+
- http://dbpedia.org/ontology/MusicGenre
1722
- http://dbpedia.org/ontology/MusicGenre
18-
maxNoOfIndividuals: 5
23+
maxNoOfIndividuals: 0
1924
maxIndividualsPerExampleConcept: 30
2025
percentageOfPositiveExamples: 0.5
2126
percentageOfNegativeExamples: 0.5
2227
maxNoOfExamples: 30
2328
minNoOfExamples: 5
24-
maxGenerateConcepts: 100
29+
maxGenerateConcepts: 10
2530
maxConceptLength: 8
2631
maxDepth: 1
27-
removeLiterals: true
28-
namespace: http://dbpedia.org/ontology/

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
</developer>
2727
</developers>
2828
<properties>
29-
<maven.compiler.source>11</maven.compiler.source>
30-
<maven.compiler.target>11</maven.compiler.target>
29+
<maven.compiler.source>1.8</maven.compiler.source>
30+
<maven.compiler.target>1.8</maven.compiler.target>
3131
<log4j.version>2.13.3</log4j.version>
3232
</properties>
3333

@@ -214,8 +214,8 @@
214214
<artifactId>maven-compiler-plugin</artifactId>
215215
<version>3.8.1</version>
216216
<configuration>
217-
<source>11</source>
218-
<target>11</target>
217+
<source>1.8</source>
218+
<target>1.8</target>
219219
<encoding>UTF-8</encoding>
220220
<compilerArgs>
221221
<arg>-parameters</arg>

src/main/java/org/dice_group/lpbenchgen/dl/OWL2SPARQL.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@
3434
* <p>
3535
* <p>
3636
* Copied the OWLClassExpressionToSPARQLConverter from https://github.com/SmartDataAnalytics/OWL2SPARQL and change some bits
37-
*
38-
* @author Lixi Alié Conrads
39-
*/
37+
**/
4038
public class OWL2SPARQL implements OWLClassExpressionVisitor, OWLPropertyExpressionVisitor, OWLDataRangeVisitor{
4139

4240
private static final Logger logger = LoggerFactory.getLogger(OWLClassExpressionToSPARQLConverter.class);

src/main/java/org/dice_group/lpbenchgen/dl/OWLTBoxPositiveCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public Collection<String> createDistinctConcepts(int noOfConcepts){
8484
continue;
8585
}
8686
try {
87-
if (!retriever.retrieveIndividualsForConcept(concept, 1, 5).isEmpty()) {
87+
if (!retriever.retrieveIndividualsForConcept(concept, 1, 2).isEmpty()) {
8888

8989
ret.add(parser.render(concept));
9090
if (ret.size() >= noOfConcepts) {

src/main/java/org/dice_group/lpbenchgen/sparql/IndividualRetriever.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private List<String> createRequest(String sparqlQuery, int timeOut){
105105
//System.out.println("Code: "+code+", CT: "+actualContentType);
106106
//e.printStackTrace();
107107
String id = UUID.randomUUID().toString();
108-
LOGGER.warn("Could not execute request due to {}, see debug id:{}", e.getMessage(), id);
108+
LOGGER.debug("Could not execute request due to {}, see debug id:{}", e.getMessage(), id);
109109
LOGGER.debug(id+": ", e);
110110
}
111111
return ret;

0 commit comments

Comments
 (0)