From 99db78d7a2ca9c4812b529dfca3f10571bb8abc0 Mon Sep 17 00:00:00 2001 From: TortugaAttack Date: Thu, 1 Apr 2021 22:35:02 +0200 Subject: [PATCH] 1.0 --- exampleconfig.yml | 11 +++++++---- pom.xml | 8 ++++---- .../java/org/dice_group/lpbenchgen/dl/OWL2SPARQL.java | 4 +--- .../lpbenchgen/dl/OWLTBoxPositiveCreator.java | 2 +- .../lpbenchgen/sparql/IndividualRetriever.java | 2 +- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/exampleconfig.yml b/exampleconfig.yml index 97baa94..88e8b1b 100644 --- a/exampleconfig.yml +++ b/exampleconfig.yml @@ -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/ \ No newline at end of file diff --git a/pom.xml b/pom.xml index ef73fd4..1a63609 100644 --- a/pom.xml +++ b/pom.xml @@ -26,8 +26,8 @@ - 11 - 11 + 1.8 + 1.8 2.13.3 @@ -214,8 +214,8 @@ maven-compiler-plugin 3.8.1 - 11 - 11 + 1.8 + 1.8 UTF-8 -parameters diff --git a/src/main/java/org/dice_group/lpbenchgen/dl/OWL2SPARQL.java b/src/main/java/org/dice_group/lpbenchgen/dl/OWL2SPARQL.java index 8bffc70..b46bfae 100644 --- a/src/main/java/org/dice_group/lpbenchgen/dl/OWL2SPARQL.java +++ b/src/main/java/org/dice_group/lpbenchgen/dl/OWL2SPARQL.java @@ -34,9 +34,7 @@ *

*

* 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); diff --git a/src/main/java/org/dice_group/lpbenchgen/dl/OWLTBoxPositiveCreator.java b/src/main/java/org/dice_group/lpbenchgen/dl/OWLTBoxPositiveCreator.java index 37f7c43..7eaab26 100644 --- a/src/main/java/org/dice_group/lpbenchgen/dl/OWLTBoxPositiveCreator.java +++ b/src/main/java/org/dice_group/lpbenchgen/dl/OWLTBoxPositiveCreator.java @@ -84,7 +84,7 @@ public Collection 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) { diff --git a/src/main/java/org/dice_group/lpbenchgen/sparql/IndividualRetriever.java b/src/main/java/org/dice_group/lpbenchgen/sparql/IndividualRetriever.java index 5e84ad3..8af72ef 100644 --- a/src/main/java/org/dice_group/lpbenchgen/sparql/IndividualRetriever.java +++ b/src/main/java/org/dice_group/lpbenchgen/sparql/IndividualRetriever.java @@ -105,7 +105,7 @@ private List 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;