diff --git a/pom.xml b/pom.xml
index 492fb68..c268061 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
es.oeg
widoco
jar
- 1.4.23
+ 1.4.24
Widoco
diff --git a/src/main/resources/lode/swrl-module.xsl b/src/main/resources/lode/swrl-module.xsl
index 6fa6dc0..0da7035 100644
--- a/src/main/resources/lode/swrl-module.xsl
+++ b/src/main/resources/lode/swrl-module.xsl
@@ -48,12 +48,16 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -193,8 +197,10 @@ Copyright (C) 2023, Victor Chavez
SWRL rules
-
+
diff --git a/src/test/java/widoco/CreateDocInThreadTest.java b/src/test/java/widoco/CreateDocInThreadTest.java
index 9c876cf..0311a24 100644
--- a/src/test/java/widoco/CreateDocInThreadTest.java
+++ b/src/test/java/widoco/CreateDocInThreadTest.java
@@ -357,7 +357,23 @@ public void testOntologyInLanguage() {
fail("Error while running test "+e.getMessage());
}
}*/
-
+ /**
+ * Testing an ontology with SWRL rules (issue
+ */
+ @org.junit.Test
+ public void testOntologyWithSWRLRules() {
+ System.out.println("Testing Ontology: PAC2_EX2_RDF.rdf");
+ try{
+ String pathToOnto = "test" + File.separator + "PAC2_EX2_RDF.rdf";
+ c.setFromFile(true);
+ this.c.setOntologyPath(pathToOnto);
+ //read the model from file
+ WidocoUtils.loadModelToDocument(c);
+ CreateResources.generateDocumentation(c.getDocumentationURI(), c, c.getTmpFile());
+ }catch(Exception e){
+ fail("Error while running test "+e.getMessage());
+ }
+ }
}
diff --git a/test/PAC2_EX2_RDF.rdf b/test/PAC2_EX2_RDF.rdf
new file mode 100644
index 0000000..858db9f
--- /dev/null
+++ b/test/PAC2_EX2_RDF.rdf
@@ -0,0 +1,1039 @@
+
+
+
+ An ontology that describes the surveys performed to flight customers.
+ SurveysPAC2_EX2_dsorianopons
+ 1.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Indicates the customers in the flight
+ hasCustomer
+
+
+
+
+
+
+
+
+
+
+ The city of destination of the flight
+ hasDestination
+
+
+
+
+
+
+
+
+
+ Indicates the flight of the passenger.
+ hasFlight
+
+
+
+
+
+
+
+
+
+ Date of flight
+ hasFlightDate
+
+
+
+
+
+
+
+
+
+ Country of birth of the person
+ hasNationality
+
+
+
+
+
+
+
+
+
+
+ City of origin of the flight
+ hasOrigin
+
+
+
+
+
+
+
+
+
+
+ The owner of the airline in charge of the flight
+ hasOwner
+
+
+
+
+
+
+
+
+
+ Indicates the class seat of the passenger
+ hasSeatClass
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Indicates the age of the person
+ hasAge
+
+
+
+
+
+
+
+
+
+
+ Rating of the flight for that customer review
+ hasRating
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Address where the person lives
+ Address
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ A company or organisation that his main activity is to provide flights using ariplanes
+ Airplane Company
+
+
+
+
+
+
+
+
+ A airplane.
+ Airplane
+ https://dbpedia.org/page/Airplane
+
+
+
+
+
+
+
+
+ All the airplanes that are owned by the airplane company
+ Airplane Fleet
+
+
+
+
+
+
+
+
+ Class designed for Business Travelers
+ Business Class
+
+
+
+
+
+
+
+
+
+ Traveller that has business as their purpouse.
+ Business Traveller
+
+
+
+
+
+
+
+
+ A city
+ City
+ https://dbpedia.org/page/City
+
+
+
+
+
+
+
+ A company or organisation
+ Company
+
+
+
+
+
+
+
+ A continent
+ Continent
+
+
+
+
+
+
+
+
+ A country
+ Country
+
+
+
+
+
+
+
+
+
+
+ Travellers that are travelling as a couple.
+ Couple Leisure
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Person that is taking the flight.
+ Customer
+
+
+
+
+
+
+
+
+ A review performed by a customer on a flight service.
+
+
+
+
+
+
+
+
+
+ A review performed by a customer.
+ Customer Review
+
+
+
+
+
+
+
+ A date
+ Date
+ https://dbpedia.org/page/Date
+
+
+
+
+
+
+
+
+ A day of the month
+ Day
+
+
+
+
+
+
+
+
+ A description to provide details of the review performed
+ Description
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+ A city where the airplane is supposed to arrive at the end of the flight.
+ Destination
+
+
+
+
+
+
+
+
+ Seats with the lowest price
+ EconomyClass
+
+
+
+
+
+
+
+
+
+ Travellers that are travelling with their family.
+ Family Leisure
+
+
+
+
+
+
+
+
+ Premium seat class
+ FirstClass
+
+
+
+
+
+
+
+
+ A flight between two cities
+ Flight
+
+
+
+
+
+
+
+
+ Date of the flight
+ Flight Date
+
+
+
+
+
+
+
+
+ A rate to calificate the flight service.
+ Flight Rate
+
+
+
+
+
+
+
+
+ A flight service provided
+ Flight Service
+
+
+
+
+
+
+
+
+ Traveller that has leisure as their purpouse.
+ Leisure Traveller
+
+
+
+
+
+
+
+
+ A month of the year
+ Month
+
+
+
+
+
+
+
+
+ Country of birth of the person
+ Nationality
+
+
+
+
+
+
+
+
+
+
+ No
+ No
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+ The city from where the airplanes starts its flight.
+ Origin
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+ Company owner of the flight provided.
+ Owner
+
+
+
+
+
+
+
+ Person
+
+
+
+
+
+
+
+
+ Economic seats but with some more space
+ PremiumEconomyClass
+
+
+
+
+
+
+
+
+ A review performed by a professional.
+ Professional Review
+
+
+
+
+
+
+
+
+ Whether a customer would recommend or not a flight
+ Recommend
+
+
+
+
+
+
+
+ A review performed
+ Review
+
+
+
+
+
+
+
+
+ The owner of the review
+ Review Owner
+
+
+
+
+
+
+
+
+ Class of the seat
+ SeatClass
+
+
+
+
+
+
+
+
+ All the services that are owned by the airplane ccompany
+ Services
+
+
+
+
+
+
+
+
+ Travellers that are travelling alone.
+ Solo Leisure
+
+
+
+
+
+
+
+
+ Item to be sold to the customers of the flight, that allows the person to use the service.
+ Ticket
+
+
+
+
+
+
+
+
+ A title to summarize the review
+ Title
+
+
+
+
+
+
+
+
+ Person that is travelling
+ Traveller
+
+
+
+
+
+
+
+ A vehicle
+ Vehicle
+
+
+
+
+
+
+
+
+ A year
+ Year
+
+
+
+
+
+
+
+
+
+ Yes
+ Yes
+
+
+
+
+
+
+
+
+ Not applicable
+ N/A
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6
+ A person.
+ Albert
+
+
+
+
+
+
+
+
+ A city
+ Albacete
+
+
+
+
+
+
+
+
+ Airplane Name
+ Boeing 737
+
+
+
+
+
+
+
+
+ 28
+ 7
+ A person
+ David
+
+
+
+
+
+
+
+
+
+ A person
+ Marta
+
+
+
+
+
+
+
+
+ An airplane company
+ Ryanair
+
+
+
+
+
+
+
+
+ A seat of a airplane
+ Seat13B
+
+
+
+
+
+
+
+
+ A seat of a airplane
+ Seat2A
+
+
+
+
+
+
+
+
+ A city.
+ Standsted
+
+
+
+
+
+
+
+
+ A date
+ 13-12-2022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Flight Boeing 737 owned by Ryanair, with origin in Albacete and Standsted destination. On 13-12-2022
+ Boeing737 Albacete-Standsted 13-12-2022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/catalog-v001.xml b/test/catalog-v001.xml
deleted file mode 100644
index 8334785..0000000
--- a/test/catalog-v001.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-