Java 类org.semanticweb.owlapi.model.OWLException 实例源码

项目:onprom    文件:EBDAModelImpl2.java   
private void addMapping(CaseAnnotationQuery taq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    //TODO: make a check if reformulateSPARQL2 ada masalah, lanjut ke query berikutnya, jangan mati
    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(taq.getQuery());
    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether taq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether taq.getNameAnsVariable() is null or not before calling varMap.get
        addTraceMapping(sqlWithVarMap.getSQL(), 
                    cleanURI(varMap.get(taq.getTraceAnsVariable())),
                    cleanURI(varMap.get(taq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelImpl2.java   
private void addMapping(Set<EventAnnotationQuery> eaqSet, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    Iterator<EventAnnotationQuery> it = eaqSet.iterator();

    int eventUID = 1;

    while(it.hasNext()){
        EventAnnotationQuery eaq = it.next();

        EventTraceAnnotationQuery etaq = eaq.getEventTrace();
        EventTimestampAnnotationQuery etsaq = eaq.getEventTimestamp();
        EventResourceAnnotationQuery eraq = eaq.getEventResource();
        EventLifecycleAnnotationQuery elaq = eaq.getEventLifecycle();

        this.addMapping(eventUID, eaq, reasoner);

        if(etaq != null) this.addMapping(eventUID, etaq, reasoner);
        if(etsaq != null) this.addMapping(eventUID, etsaq, reasoner);
        if(eraq != null) this.addMapping(eventUID, eraq, reasoner);
        if(elaq != null) this.addMapping(eventUID, elaq, reasoner);

        eventUID++;
    }
}
项目:onprom    文件:EBDAModelImpl2.java   
private void addMapping(int eventUID, EventAnnotationQuery eaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether eaq.getEventAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether eaq.getNameAnsVariable() is null or not before calling varMap.get
        addEventNameMapping(sqlWithVarMap.getSQL(), eventUID, 
                cleanURI(varMap.get(eaq.getEventAnsVariable())),
                cleanURI(varMap.get(eaq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelImpl2.java   
private void addMapping(int eventUID, EventTraceAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether etaq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether etaq.getEventAnsVariable() is null or not before calling varMap.get
        addEventTraceMapping(sqlWithVarMap.getSQL(), eventUID,
                    cleanURI(varMap.get(etaq.getTraceAnsVariable())), 
                    cleanURI(varMap.get(etaq.getEventAnsVariable()))
            );

    }
}
项目:onprom    文件:EBDAModelImpl2.java   
private void addMapping(int eventUID, EventTimestampAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventTimestampMapping(sqlWithVarMap.getSQL(), eventUID,
                    cleanURI(varMap.get(etaq.getEventAnsVariable())),
                    cleanURI(varMap.get(etaq.getTimestampAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelImpl2.java   
private void addMapping(int eventUID, EventResourceAnnotationQuery eraq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eraq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventResourceMapping(
                sqlWithVarMap.getSQL(), eventUID,
                cleanURI(varMap.get(eraq.getEventAnsVariable())),
                cleanURI(varMap.get(eraq.getResourceAnsVariable()))
            );
    }

}
项目:onprom    文件:EBDAModelImpl3.java   
private void addMapping(CaseAnnotationQuery taq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    //TODO: make a check if reformulateSPARQL2 ada masalah, lanjut ke query berikutnya, jangan mati
    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(taq.getQuery());
    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether taq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether taq.getNameAnsVariable() is null or not before calling varMap.get
        addTraceNameMapping(sqlWithVarMap.getSQL(), 
                    cleanURI(varMap.get(taq.getTraceAnsVariable())),
                    cleanURI(varMap.get(taq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelImpl3.java   
private void addMapping(Set<EventAnnotationQuery> eaqSet, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    Iterator<EventAnnotationQuery> it = eaqSet.iterator();

    int eventUID = 1;

    while(it.hasNext()){
        EventAnnotationQuery eaq = it.next();

        EventTraceAnnotationQuery etaq = eaq.getEventTrace();
        EventTimestampAnnotationQuery etsaq = eaq.getEventTimestamp();
        EventResourceAnnotationQuery eraq = eaq.getEventResource();
        EventLifecycleAnnotationQuery elaq = eaq.getEventLifecycle();

        this.addMapping(eventUID, eaq, reasoner);

        if(etaq != null) this.addMapping(eventUID, etaq, reasoner);
        if(etsaq != null) this.addMapping(eventUID, etsaq, reasoner);
        if(eraq != null) this.addMapping(eventUID, eraq, reasoner);
        if(elaq != null) this.addMapping(eventUID, elaq, reasoner);

        eventUID++;
    }
}
项目:onprom    文件:EBDAModelImpl3.java   
private void addMapping(int eventUID, EventAnnotationQuery eaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether eaq.getEventAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether eaq.getNameAnsVariable() is null or not before calling varMap.get
        addEventNameMapping(sqlWithVarMap.getSQL(), eventUID, 
                cleanURI(varMap.get(eaq.getEventAnsVariable())),
                cleanURI(varMap.get(eaq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelImpl3.java   
private void addMapping(int eventUID, EventTraceAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether etaq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether etaq.getEventAnsVariable() is null or not before calling varMap.get
        addEventTraceMapping(sqlWithVarMap.getSQL(), eventUID,
                    cleanURI(varMap.get(etaq.getTraceAnsVariable())), 
                    cleanURI(varMap.get(etaq.getEventAnsVariable()))
            );

    }
}
项目:onprom    文件:EBDAModelImpl3.java   
private void addMapping(int eventUID, EventTimestampAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventTimestampMapping(sqlWithVarMap.getSQL(), eventUID,
                    cleanURI(varMap.get(etaq.getEventAnsVariable())),
                    cleanURI(varMap.get(etaq.getTimestampAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelImpl3.java   
private void addMapping(int eventUID, EventResourceAnnotationQuery eraq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eraq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventResourceMapping(
                sqlWithVarMap.getSQL(), eventUID,
                cleanURI(varMap.get(eraq.getEventAnsVariable())),
                cleanURI(varMap.get(eraq.getResourceAnsVariable()))
            );
    }

}
项目:onprom    文件:EBDAModelWithOptimizedXAttributesEncodingImpl.java   
private void addMapping(CaseAnnotationQuery taq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    //TODO: make a check if reformulateSPARQL2 ada masalah, lanjut ke query berikutnya, jangan mati
    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(taq.getQuery());
    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether taq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether taq.getNameAnsVariable() is null or not before calling varMap.get
        addTraceNameMapping(sqlWithVarMap.getSQL(), 
                    cleanURI(varMap.get(taq.getTraceAnsVariable())),
                    cleanURI(varMap.get(taq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelWithOptimizedXAttributesEncodingImpl.java   
private void addMapping(Set<EventAnnotationQuery> eaqSet, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    Iterator<EventAnnotationQuery> it = eaqSet.iterator();

    int eventUID = 1;

    while(it.hasNext()){
        EventAnnotationQuery eaq = it.next();

        EventTraceAnnotationQuery etaq = eaq.getEventTrace();
        EventTimestampAnnotationQuery etsaq = eaq.getEventTimestamp();
        EventResourceAnnotationQuery eraq = eaq.getEventResource();
        EventLifecycleAnnotationQuery elaq = eaq.getEventLifecycle();

        this.addMapping(eventUID, eaq, reasoner);

        if(etaq != null) this.addMapping(eventUID, etaq, reasoner);
        if(etsaq != null) this.addMapping(eventUID, etsaq, reasoner);
        if(eraq != null) this.addMapping(eventUID, eraq, reasoner);
        if(elaq != null) this.addMapping(eventUID, elaq, reasoner);

        eventUID++;
    }
}
项目:onprom    文件:EBDAModelWithOptimizedXAttributesEncodingImpl.java   
private void addMapping(int eventUID, EventAnnotationQuery eaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether eaq.getEventAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether eaq.getNameAnsVariable() is null or not before calling varMap.get
        addEventNameMapping(sqlWithVarMap.getSQL(), eventUID, 
                cleanURI(varMap.get(eaq.getEventAnsVariable())),
                cleanURI(varMap.get(eaq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelWithOptimizedXAttributesEncodingImpl.java   
private void addMapping(int eventUID, EventTraceAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether etaq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether etaq.getEventAnsVariable() is null or not before calling varMap.get
        addEventTraceMapping(sqlWithVarMap.getSQL(), eventUID,
                    cleanURI(varMap.get(etaq.getTraceAnsVariable())), 
                    cleanURI(varMap.get(etaq.getEventAnsVariable()))
            );

    }
}
项目:onprom    文件:EBDAModelWithOptimizedXAttributesEncodingImpl.java   
private void addMapping(int eventUID, EventTimestampAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventTimestampMapping(sqlWithVarMap.getSQL(), eventUID,
                    cleanURI(varMap.get(etaq.getEventAnsVariable())),
                    cleanURI(varMap.get(etaq.getTimestampAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelWithOptimizedXAttributesEncodingImpl.java   
private void addMapping(int eventUID, EventResourceAnnotationQuery eraq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eraq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventResourceMapping(
                sqlWithVarMap.getSQL(), eventUID,
                cleanURI(varMap.get(eraq.getEventAnsVariable())),
                cleanURI(varMap.get(eraq.getResourceAnsVariable()))
            );
    }

}
项目:onprom    文件:EBDAModelNaiveImpl.java   
private void addMapping(CaseAnnotationQuery taq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    //TODO: make a check if reformulateSPARQL2 ada masalah, lanjut ke query berikutnya, jangan mati
    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(taq.getQuery());
    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether taq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether taq.getNameAnsVariable() is null or not before calling varMap.get
        addTraceMapping(sqlWithVarMap.getSQL(), 
                    cleanURI(varMap.get(taq.getTraceAnsVariable())),
                    cleanURI(varMap.get(taq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelNaiveImpl.java   
private void addMapping(Set<EventAnnotationQuery> eaqSet, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    Iterator<EventAnnotationQuery> it = eaqSet.iterator();
    while(it.hasNext()){
        EventAnnotationQuery eaq = it.next();

        EventTraceAnnotationQuery etaq = eaq.getEventTrace();
        EventTimestampAnnotationQuery etsaq = eaq.getEventTimestamp();
        EventResourceAnnotationQuery eraq = eaq.getEventResource();
        EventLifecycleAnnotationQuery elaq = eaq.getEventLifecycle();

        this.addMapping(eaq, reasoner);

        if(etaq != null) this.addMapping(etaq, reasoner);
        if(etsaq != null) this.addMapping(etsaq, reasoner);
        if(eraq != null) this.addMapping(eraq, reasoner);
        if(elaq != null) this.addMapping(elaq, reasoner);
    }
}
项目:onprom    文件:EBDAModelNaiveImpl.java   
private void addMapping(EventAnnotationQuery eaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether eaq.getEventAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether eaq.getNameAnsVariable() is null or not before calling varMap.get
        addEventMapping(sqlWithVarMap.getSQL(), 
                cleanURI(varMap.get(eaq.getEventAnsVariable())),
                cleanURI(varMap.get(eaq.getNameAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelNaiveImpl.java   
private void addMapping(EventTraceAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        //TODO: need to check whether etaq.getTraceAnsVariable() is null or not before calling varMap.get
        //TODO: need to check whether etaq.getEventAnsVariable() is null or not before calling varMap.get
        addEventTraceMapping(sqlWithVarMap.getSQL(), 
                    cleanURI(varMap.get(etaq.getTraceAnsVariable())), 
                    cleanURI(varMap.get(etaq.getEventAnsVariable()))
            );

    }
}
项目:onprom    文件:EBDAModelNaiveImpl.java   
private void addMapping(EventTimestampAnnotationQuery etaq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(etaq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventTimestampMapping(sqlWithVarMap.getSQL(), 
                    cleanURI(varMap.get(etaq.getEventAnsVariable())),
                    cleanURI(varMap.get(etaq.getTimestampAnsVariable()))
            );
    }
}
项目:onprom    文件:EBDAModelNaiveImpl.java   
private void addMapping(EventResourceAnnotationQuery eraq, QuestOWLReasonerExt reasoner) 
        throws OWLException, OBDAException, MalformedQueryException{

    List<SQLWithVarMap> unfoldedQuery = reasoner.reformulateSPARQL2(eraq.getQuery());

    Iterator<SQLWithVarMap> it = unfoldedQuery.iterator(); 

    while(it.hasNext()){

        SQLWithVarMap sqlWithVarMap = it.next();
        HashMap<String, String> varMap = sqlWithVarMap.getVariableMap();

        addEventResourceMapping(
                sqlWithVarMap.getSQL(), 
                cleanURI(varMap.get(eraq.getEventAnsVariable())),
                cleanURI(varMap.get(eraq.getResourceAnsVariable()))
            );
    }

}
项目:onprom    文件:XESLogExtractorExperimentParalel.java   
@Override
public void run() {
    this.finished = false;

    //extract all events and associate each event with their attributes
    logger.info(String.format(LEConstants.LOG_INFO_TEMPLATE, "Retrieving XES events information"));
    try {
        xevents = ebdaR.retrieveXEvents16(attributes);

    } catch (OWLException e) {
        e.printStackTrace();
    }
    this.finished = true;
    synchronized(lock){
        lock.notifyAll();
    }
}
项目:onprom    文件:XESLogExtractorExperimentParalel.java   
@Override
public void run() {

    this.finished = false;

    //extract all traces and associate each trace with their events
    logger.info(String.format(LEConstants.LOG_INFO_TEMPLATE, "Retrieving XES traces information"));
    try {
        xtraces = ebdaR.retrieveXTraces16(attributes);
    } catch (OWLException e) {
        e.printStackTrace();
    }
    this.finished = true;
    synchronized(lock){
        lock.notifyAll();
    }
}
项目:onprom    文件:EBDAReasonerImplWithParallelProcessing.java   
@Override
public void run() {
    this.finished = false;
    this.setPriority(Thread.MAX_PRIORITY);

    //extract all events and associate each event with their attributes
    logger.info(String.format(LEConstants.LOG_INFO_TEMPLATE, "Retrieving XES events information"));
    try {
        xevents = retrieveXEvents17();

    } catch (OWLException e) {
        e.printStackTrace();
    }

    this.finished = true;

    synchronized(caller){
        caller.notify();
    }
}
项目:onprom    文件:EBDAReasonerImplWithParallelProcessing.java   
@Override
public void run() {

    this.finished = false;

    //extract all traces and associate each trace with their events
    logger.info(String.format(LEConstants.LOG_INFO_TEMPLATE, "Retrieving XES traces information"));
    try {
        xtraces = retrieveXTraces17();
    } catch (OWLException e) {
        e.printStackTrace();
    }

    this.finished = true;

    synchronized(caller){
        caller.notify();
    }
}
项目:onprom    文件:QuestOWLReasonerExt.java   
public List<SQLWithVarMap> reformulateSPARQL2(String sparqlQuery) throws OWLException, OBDAException, MalformedQueryException {

        QuestQueryProcessor qqueryProcessor = this.getQueryProcessor();

        //parse the given SPARQL query
        ParsedQuery parsedSparql = qqueryProcessor.getParsedQuery(sparqlQuery);

        //applying the reformulation algorithm to the parsed SPARQL query, 
        //the resulting reformulated query is in the form of DatalogProgram
        DatalogProgram reformulatedQuery = qqueryProcessor.reformulateSPARQL(parsedSparql);
        List<String> qs = qqueryProcessor.getQuerySignature(parsedSparql);


        if(qs == null)
            throw new OBDAException("\nA problem occurred while reformulating the query: \n\n"+
                sparqlQuery+"\n\nthe signature of the reformulated query can't be obtained. Please check the Ontop configuration.\n");

        //translate the reformulated query (which is in the form of DatalogProgram) into (a list of) SQL
        return this.sqlGeneratorExt.generateSourceQueries(reformulatedQuery, qs);
    }