Examples of UnsupportedTypeForExportException


Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

            for (int i = 0; ruleIterator.hasNext(); i++) {
                jenaRules.add((com.hp.hpl.jena.reasoner.rulesys.Rule) adaptRuleTo(ruleIterator.next(), type));
            }

        } else {
            throw new UnsupportedTypeForExportException(
                    "The Jena Adapter does not support the selected serialization : "
                            + type.getCanonicalName());
        }

        return (T) jenaRules;
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

            }

            return (T) new com.hp.hpl.jena.reasoner.rulesys.Rule(rule.getRuleName(), headClauseEntries,
                    bodyClauseEntries);
        } else {
            throw new UnsupportedTypeForExportException("The adapter " + getClass()
                                                        + " does not support type : "
                                                        + type.getCanonicalName());
        }

    }
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

            } catch (SecurityException e) {
                log.error(e.getMessage(), e);
            }

        } else {
            throw new UnsupportedTypeForExportException("The adapter " + getClass()
                                                        + " does not support type : "
                                                        + type.getCanonicalName());
        }

        return null;
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

                    swrlRules.add(adaptRuleTo(rule, SWRLRule.class));
                }
            }

        } else {
            throw new UnsupportedTypeForExportException(
                    "The SPARQL Export Provider does not support the selected serialization : "
                            + type.getCanonicalName());
        }

        return (T) swrlRules;
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

                headAtoms.add((SWRLAtom) adaptRuleAtomTo(atom, SWRLRule.class));
            }

            return (T) factory.getSWRLRule(bodyAtoms, headAtoms);
        } else {
            throw new UnsupportedTypeForExportException("The adapter " + getClass()
                                                        + " does not support type : "
                                                        + type.getCanonicalName());
        }

    }
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

            } catch (SecurityException e) {
                log.error(e.getMessage(), e);
            }

        } else {
            throw new UnsupportedTypeForExportException("The adapter " + getClass()
                                                        + " does not support type : "
                                                        + type.getCanonicalName());
        }

        return null;
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

            for (int i = 0; ruleIterator.hasNext(); i++) {
                sparqlObjects.add((SPARQLObject) adaptRuleTo(ruleIterator.next(), type));
            }

        } else {
            throw new UnsupportedTypeForExportException(
                    "The SPARQL Export Provider does not support the selected serialization : "
                            + type.getCanonicalName());
        }

        return (T) sparqlObjects;
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException

            for (int i = 0; ruleIterator.hasNext(); i++) {
                constructQueries.add((ConstructQuery) adaptRuleTo(ruleIterator.next(), type));
            }

        } else {
            throw new UnsupportedTypeForExportException(
                    "The adapter for Clerezza does not support the selected serialization : "
                            + type.getCanonicalName());
        }

        return (T) constructQueries;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.