From f3ad040d6710318284fb8fed9fc40a197a2c4e5f Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Wed, 17 Aug 2016 10:55:24 +0200 Subject: [PATCH] [TASK] Move everything to proper example.org --- data/carData.rdf | 12 +- data/carSimulationOntology.owl | 200 +++++++++--------- .../java/lu/jpt/csparqltest/rentacar/Car.java | 9 + .../rentacar/RentACarSimulation.java | 7 +- 4 files changed, 119 insertions(+), 109 deletions(-) diff --git a/data/carData.rdf b/data/carData.rdf index 5103103..8515904 100644 --- a/data/carData.rdf +++ b/data/carData.rdf @@ -4,14 +4,14 @@ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" - xmlns:simobjects="http://jpt.lu/objects#" - xmlns:simontology="http://jpt.lu/carSimulationOntology#"> + xmlns:simobjects="http://example.org/carSim/objects#" + xmlns:simontology="http://example.org/carSim/carSimulationOntology#"> - + - + 3500 3.5 800 @@ -22,9 +22,9 @@ - + - + Max +49 12345 B diff --git a/data/carSimulationOntology.owl b/data/carSimulationOntology.owl index a1b472c..2cc49f8 100644 --- a/data/carSimulationOntology.owl +++ b/data/carSimulationOntology.owl @@ -1,14 +1,14 @@ - - + Beispielhafte Ontologie für die Autosimulation @@ -25,51 +25,51 @@ - + - - - - + + + + - + - - - + + + - + - - - - + + + + - + - - - - - + + + + + - + - - - + + + @@ -85,125 +85,125 @@ - + - - - + + + - + - - + + - + - - - + + + - + - - + + - + - - - + + + - + - - + + - + - - + + - + - - - + + + - + - - - + + + - + - - + + - + - - - + + + - + - - - + + + - + - - + + @@ -212,7 +212,7 @@ - + @@ -221,7 +221,7 @@ - + @@ -238,69 +238,69 @@ - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + diff --git a/src/main/java/lu/jpt/csparqltest/rentacar/Car.java b/src/main/java/lu/jpt/csparqltest/rentacar/Car.java index 6760d72..171589c 100644 --- a/src/main/java/lu/jpt/csparqltest/rentacar/Car.java +++ b/src/main/java/lu/jpt/csparqltest/rentacar/Car.java @@ -204,6 +204,15 @@ public class Car { this.quads.add(new RdfQuadruple(eventIri, baseOnt+"relatedCar", this.getIri(), time)); } + private void fireCheckEngineEvent() { + long time = System.currentTimeMillis(); + String baseIri = RentACarSimulation.BASE_OBJECT_IRI; + String baseOnt = RentACarSimulation.BASE_ONTOLOGY_IRI; + String eventIri = baseIri + "/event#" + time; + this.quads.add(new RdfQuadruple(eventIri, "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", baseOnt+"CarCheckEngineEvent", time)); + this.quads.add(new RdfQuadruple(eventIri, baseOnt+"relatedCar", this.getIri(), time)); + } + private void generateContinousReportQuads() { long time = System.currentTimeMillis(); String baseIri = RentACarSimulation.BASE_OBJECT_IRI; diff --git a/src/main/java/lu/jpt/csparqltest/rentacar/RentACarSimulation.java b/src/main/java/lu/jpt/csparqltest/rentacar/RentACarSimulation.java index c3696bb..44c74ad 100644 --- a/src/main/java/lu/jpt/csparqltest/rentacar/RentACarSimulation.java +++ b/src/main/java/lu/jpt/csparqltest/rentacar/RentACarSimulation.java @@ -8,9 +8,10 @@ import eu.larkc.csparql.cep.api.RdfStream; public class RentACarSimulation implements Runnable { - public static final String BASE_ONTOLOGY_IRI = "http://jpt.lu/carSimulationOntology#"; - public static final String BASE_STREAM_IRI = "http://simstream.org"; - public static final String BASE_OBJECT_IRI = "http://jpt.lu/objects"; + public static final String BASE_URI = "http://example.org/carSim"; + public static final String BASE_ONTOLOGY_IRI = BASE_URI + "/carSimulationOntology#"; + public static final String BASE_STREAM_IRI = BASE_URI + "/stream"; + public static final String BASE_OBJECT_IRI = BASE_URI + "/objects"; public static final String CAR_STREAM_IRI = BASE_STREAM_IRI + "/carStream"; public static final String DRIVER_STREAM_IRI = BASE_STREAM_IRI + "/driverStream";