RDF vs OWL

From http://www.w3schools.com/rdf/rdf_owl.asp:
<quote>OWL is Different from RDF
OWL and RDF are much of the same thing, but OWL is a stronger language with greater machine interpretability than RDF.
OWL comes with a larger vocabulary and stronger syntax than RDF.</quote>
Is Oracle planning on adding support for OWL?

No conversion will be required. Support for OWL will be compatible with existing applications that use Oracle RDF.
Message was edited by:
mannamal

Similar Messages

  • How to apply ontology on the existing RDF model

    Hi,
    I am new to Semantic web technologies.I am facing following issue.
    I have installed Oracle 11g with semantic support.
    I have few tables which stores customer,products information. eg :CUSTOMER_MASTER,PRODUCT_MASTER.
    Now used d2rq client and generated N-TRIPLE files by connecting to the above scheme i.e converted the tuples to triples generated RDF content.
    I could store the RDF data into Oracle 11g using the jena APIs. I was successfull till this point.
    Now , I have defined an ontology for the above entities using protege. I was able to store the model to Oracle 11g using Jena APIs.
    But I am confused with following issues.
    1. How can I apply my ontology definition to my existing RDF model.
    i.e. - I have created a ontology definition MyOntology.owl and loaded into Oracle 11g name MyOntologyModel.
    I already have another RDF model which got generated from the relational table i.e. CustomerRDFModel .
    Now, how can I apply MyOntologyModel to CustomerRDFModel and execute meaningfull queries.
    While defining the ontology, shall I use the same class names which are used in the CustomerRDFModel ? How can I link my ontology and RDF content ?
    eg:- I have a entities such as CUSTOMER_MASTER and PRODUCT_MASTER .Now in my ontology, if I need to bring some ontology definitions , shall I use the same entity names while defining Ontology.
    Otherwise, how we can apply ontology on existing relational tables ?
    Is it not required to convert the tuples(relational data) to RDF data for running the semantic queries ?
    Please provide me some pointers on these issues .
    Thanks
    Aneesh K

    Let me explain it like this:
    The triples (data) you automatically generated using D2RQ must conform to some ontology definition (lets use ontology schema in place of ontology definition for easier understanding). I believe D2RQ generates ontology schema/definition also, along with data. Please check once. But if it does not then it is your responsibility to either manually/automatically generate a ontology definition/schema that has the same class & property names (URIs) as what your data (generated thru D2RQ) has.
    Once you have a ontology schema and ontology data (that conforms to our schema), you have two options to link them:
    1) Load both schema and data to a single ontology model in oracle database.
    2) Load them into separate models and while querying you can mention both the models in the query.
    But I believe that the database does not do any kind of validation of data against schema in any of the above case (probably because that is what is intended in the W3C OWL specification - no distinction btwn data & schema) . But if you have schema in the database you can actually do a lot if inferencing (RDFS inferencing, OWL inferencing etc..)
    Thanks,
    Rajesh.
    PS: All those Ontology pundits, correct me if I am wrong.
    Edited by: rajesh narni on Jul 9, 2010 4:30 AM

  • Oracle RDF Rules Semantics

    Hi,
    Are the semantics of the rules for Oracle RDF documented anywhere? I'm not exactly sure what I can and cannot say.
    thanks
    John

    I'm trying to create user defined rule function and bind variable in rule syntax, but i dont know how to do that in
    Oracle Db. I did that successfully when i tried in Jena and using RDF/XML File...
    For example i have such RDF/XML file like this :
    <?xml version="1.0"?>
    <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns="http://www.owl-ontologies.com/Ontology1230795417.owl#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xml:base="http://www.owl-ontologies.com/Ontology1230795417.owl">
    <owl:Ontology rdf:about=""/>
    <owl:Class rdf:ID="Example"/>
    <owl:FunctionalProperty rdf:ID="has_factorialvalue">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:domain rdf:resource="#Example"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    </owl:FunctionalProperty>
    <owl:FunctionalProperty rdf:ID="has_value">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:domain rdf:resource="#Example"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    </owl:FunctionalProperty>
    <Example rdf:ID="Example_1">
    <has_value rdf:datatype="http://www.w3.org/2001/XMLSchema#int" >5</has_value>
    </Example>
    <Example rdf:ID="Example_2">
    <has_value rdf:datatype="http://www.w3.org/2001/XMLSchema#int">3</has_value>
    </Example>
    </rdf:RDF>
    I have one Class "Example" which has 2 datatype properties : has_value and has_factorial_value, So if I have
    an Example1 as an instance of Example which has_value is 5 then has_factorial_value must be 120.
    So the Rule is
    exampletestrule1: (?b rdf:type h:Example) (?b h:has_value ?z) myfactorial(?z,?rs) -> (?b h:has_factorialvalue ?rs)
    Here for the source code
    Now... The problem is how to implement this user defined rule in Oracle db (create our own builtin function then apply it to oracle semantic rule, in this case, myfactorial

  • Sparql query using variable paths

    Hi,
    I have a following graph in Oracle that I like to query using Jena 2.6.4 and OracleJenaAdaptor 11.2.0.3
    ind:123 :hasA ind:124
    ind:124 :hasB ind:125
    ind:125 :hasC ind:126
    ind:123 :hasD ind:127
    Is there a way to construct a sparql query to return all ind: without "hard-conding" the full property name? Something in these lines (note, this query doesn't really work).
    select *
    where { ind:123 (:has*)+ ?x }
    Thanks.

    :hasA rdf:type owl:ObjectProperty ;
    rdfs:subPropertyOf :hasRelation .
    :hasB rdf:type owl:ObjectProperty ;
    rdfs:subPropertyOf :hasRelation .
    :hasC rdf:type owl:ObjectProperty ;
    rdfs:subPropertyOf :hasRelation .
    :hasD rdf:type owl:ObjectProperty ;
    rdfs:subPropertyOf :hasRelation .
    String q1 = "SELECT ?x, ?y
    where {?x (:hasRelation)+ ?y} ";
    Stirng q2 = "SELECT ?x, ?y
    where {?x :hasRelation ?y} ";
    Oracle oracle = new Oracle(szJdbcURL, szUser, szPasswd);
    Attachment attachment = Attachment.createInstance(new String[]{"my_asset","my_model"},
    new String[]{"OWLPRIME"}, InferenceMaintenanceMode.UPDATE_WHEN_COMMIT, QueryOptions.ALLOW_QUERY_INVALID_AND_DUP);
    GraphOracleSem graph = new GraphOracleSem(oracle, "vm_model", attachment);
    ModelOracleSem inferencedModel = new ModelOracleSem(graph);
    Query query = QueryFactory.create(q1);
    Edited by: a1239090 on Aug 15, 2012 4:54 PM

  • Query failing as the size increases (11.1.0.7.0)

    Below is the query:
    SELECT DISTINCT
    product1 tag , product3 suppliername , product6 peerreview_score , product9 externalreview_score ,
    product10 shoppingcategory , product11 leadtime , product14 manufacturerrating_score , product17 supplierrating_score ,
    product20 corporatecompliance_score , product22 price , product23 description , product24 name ,
    product27 buyerpercentage_score , product29 manufacturername , product30 imageurl , product31 internalitemnumber
    from TABLE
    ( sdo_rdf_match (
    '(?x rdf:type v1:Supplier) (?x v1:has_CompanyProfile ?x01) (?x01 v1:has_Region ?x02) (?x v1:has_CompanyProfile ?x11)
    (?x11 v1:has_ExportPercentage ?x12) (?x v1:has_CompanyProfile ?x21) (?x21 v1:has_Contact ?x22) (?x22 v1:has_Email ?x23)
    (?x v1:has_YearEstablished ?x31) (?x v1:has_AnnualRevenue ?x41) (?x v1:has_EmployeeCount ?x51) (?x v1:has_CompanyProfile ?x61)
    (?x61 v1:has_Site ?x62) (?x62 v2:has_Address ?x63) (?x63 v2:has_Country ?x64) (?x v1:has_Id ?x71) (?x v1:has_CompanyProfile ?x81)
    (?x81 v1:has_Contact ?x82) (?x82 v1:has_InstantMessengerId ?x83) (?x v1:has_CompanyProfile ?x91) (?x91 v1:has_Contact ?x92)
    (?x92 v1:has_Name ?x93) (?x v1:has_DUNSNumber ?x101) (?x v1:has_CEOName ?x111) (?x v2:has_Rating ?x121)
    (?x121 v2:has_EnterpriseRatingComponent ?x122) (?x122 v2:has_CompositeRatingScore ?x123) (?x v1:has_ImageURL ?x131)
    (?x v1:has_Name ?x141) (?product rdf:type v1:Product) (?product ?some_property ?x) (?some_property rdf:type owl:ObjectProperty)
    (?product v1:has_Tags ?product1) (?product v1:has_Supplier ?product2) (?product2 v1:has_Name ?product3)
    (?product v2:has_Rating ?product4) (?product4 v2:has_EnterpriseRatingComponent ?product5) (?product5 v2:has_PeerReviewScore ?product6)
    (?product v2:has_Rating ?product7) (?product7 v2:has_SocialRatingComponent ?product8) (?product8 v2:has_CompositeRatingValue ?product9)
    (?product v1:has_ShoppingCategory ?product10) (?product v1:has_LeadTime ?product11) (?product v2:has_Rating ?product12)
    (?product12 v2:has_EnterpriseRatingComponent ?product13) (?product13 v2:has_ManufacturerRatingScore ?product14)
    (?product v2:has_Rating ?product15) (?product15 v2:has_EnterpriseRatingComponent ?product16)
    (?product16 v2:has_SupplierRatingScore ?product17) (?product v2:has_Rating ?product18)
    (?product18 v2:has_EnterpriseRatingComponent ?product19) (?product19 v2:has_CorporateComplianceScore ?product20)
    (?product v1:has_Price ?product21) (?product21 v1:has_Value ?product22) (?product v1:has_Description ?product23)
    (?product v1:has_Name ?product24) (?product v2:has_Rating ?product25) (?product25 v2:has_EnterpriseRatingComponent ?product26)
    (?product26 v2:has_BuyerPercentageScore ?product27) (?product v1:has_OEM ?product28) (?product28 v1:has_Name ?product29)
    (?product v1:has_ImageURL ?product30) (?product v1:has_InternalItemId ?product31) ' ,
    sdo_rdf_models('Proc3OntologyForAdityaM'),
    null,
    sdo_rdf_aliases( sdo_rdf_alias('owl', 'http://www.w3.org/2002/07/owl#') ,
                        sdo_rdf_alias('v4', 'http://xmlns.com/foaf/0.1#') ,
                        sdo_rdf_alias('v3', 'http://rdfs.org/sioc/ns#') ,
                        sdo_rdf_alias('v2', 'http://oracle/apps/qp/scm/enterprise_sioc#') ,
                        sdo_rdf_alias('v1', 'http://oracle/apps/scm/proc3/ontology#') ) ,
    null ) )
    WHERE REGEXP_like(x141 , 'dhl', 'i')
    And the error message:
    java.sql.SQLException: No more data to read from socket
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1042)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:999)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:584)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
    Most queries of this size are not working. When i downsize the pattern OR selected columns, then they are working. Please suggest me a solution.
    DB Version : 11.1.0.7.0
    Thanks,
    Rajesh.
    Edited by: rajesh narni on Sep 16, 2009 6:39 AM
    Edited by: rajesh narni on Sep 16, 2009 10:42 PM

    Surprisingly, the very same query is working fine on the same model loaded in 10g database. So, is this a bug in 11g?

  • Oracle property path and arq property functions

    Hi,
    I am using Oracle Jena Adapter. My problem is about property paths on Sparql queries. When I tried to query ”SELECT * WHERE { ?t rdf:type owl:ObjectProperty. ?t rdfs:domain ?o. ?o owl:unionOf ?union. ?union rdf:rest*/rdf:first ?member. }” from ModelOracleSem it gives me parser error.
    But, if i try it using jena in-memory model, it works perfectly as below code.
    hybridGraph = OracleGraphWrapperForOntModel.getInstance(graph1);
    model = ModelFactory.createModelForGraph(hybridGraph);
    ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, model);
    I also tried arq’s list function as “?union list:member ?member”. it does not return any results from ModelOracleSem. But when i try it from jena in-memory model, it works perfectly again.
    Can anyone help me to solve this issue?
    Thanks,
    Regards,

    Hi Mustafa,
    We have generated the following code snippet to execute the SPARQL query using a ModelOracleSem model:
    String szQuery = " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> "+
                 " PREFIX rdfs:  <http://www.w3.org/2000/01/rdf-schema#> " +
                 " PREFIX owl:   <http://www.w3.org/2002/07/owl#> " +
                " select * where { " +
                " ?t rdf:type owl:ObjectProperty . " +
                " ?t rdfs:domain ?o . " +
                " ?o owl:unionOf ?union . " +
                " ?union rdf:rest*/rdf:first ?member ." +
        System.err.println("Create Oracle Connection");
        Oracle oracle = new Oracle(szJdbcURL, szUser, szPasswd);
        System.err.println("Create Oracle Model");
        ModelOracleSem oracleModel = ModelOracleSem.createOracleSemModel(
                                                                oracle, szModelName);
        oracleModel.removeAll();
        System.err.println("Populate model");
        String insertString = 
                " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> "+
                " PREFIX rdfs:  <http://www.w3.org/2000/01/rdf-schema#> " +
                " PREFIX owl:   <http://www.w3.org/2002/07/owl#> " +
                " PREFIX urn:   <http://example/> " +
                " INSERT DATA "                                     +
                " { urn:objA rdf:type owl:ObjectProperty .                " +
                "   urn:objB rdf:type owl:ObjectProperty .                " +
                "   urn:objC rdf:type owl:ObjectProperty .                " +
                "   urn:objD rdf:type owl:ObjectProperty .                " +
                "   urn:objA rdfs:domain urn:dom1 .                " +
                "   urn:objB rdfs:domain urn:dom2 .                " +
                "   urn:objC rdfs:domain urn:dom3 .                " +
                "   urn:objD rdfs:domain urn:dom4 .                " +
                "   urn:dom1 owl:unionOf _:setA .                " +
                "   _:setA rdf:rest _:mem1 .                " +
                "   _:setA rdf:first urn:C1 .                " +
                "   _:mem1 rdf:first urn:C2 .                " +
                "   _:mem1 rdf:rest rdf:nil .                " +
        UpdateAction.parseExecute(insertString,  oracleModel);
        System.err.println("Population done " + oracleModel.size());
        System.err.println("Execute query over OracleModel");
        Query query = QueryFactory.create(szQuery, Syntax.syntaxARQ);
        QueryExecution qexec = QueryExecutionFactory.create(query, oracleModel);
        ResultSet results = qexec.execSelect();
        ResultSetFormatter.out(System.out, results, query);
    Can you execute this code snippet and see if you get the expected result?
    | t                     | o                     | union | member              |
    ===============================================================================
    | <http://example/objA> | <http://example/dom1> | _:b0  | <http://example/C1> |
    | <http://example/objA> | <http://example/dom1> | _:b0  | <http://example/C2> |
    Thanks,
    Gaby

  • ExtractValue-namespace problem?

    hi
    extract(value(x),'//owl:Ontology') extracts the node, but the result of
    extractValue(value(x),'//owl:Ontology//rdfs:label') is empty. I tried different way but without any success.
    Any idea what can be the problem?
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#">
         <owl:Ontology>
              <rdfs:comment>An example OWL ontology</rdfs:comment>
              <rdfs:comment>Derived from the DAML Wine ontology at
    http://ontolingua.stanford.edu/doc/chimaera/ontologies/wines.daml
    Substantially changed, in particular the Region based relations.
    </rdfs:comment>
              <rdfs:label>Wine Ontology</rdfs:label>
         </owl:Ontology>
    </rdf:RDF>

    Problem solved.
    Thanks,
    See: Re: extractvalue and Xpath

  • Oracle semantic tech inference + Protege plugin

    Hi
    From the Protege Plugin, I've installed a simple Ontology for testing on Oracle 11g, I've added a few individuals to the database with no problem at all, though I can't see the inference on the database!!.
    Jena Adapter for Oracle Database I am using these instructions to install Joseki and a Java client. Everything seems okay, I can query the RDF database and the individuals using Joseki and a Jena client.
    This snippet is part of the client to perform the inference.
    Oracle oracle = new Oracle("jdbc:oracle:thin:@161.x.y.z:1521:NTCSHIST", "user", "password");
            Attachment attachment = Attachment.createInstance(new String[] {}, "OWLPRIME",
                        InferenceMaintenanceMode.NO_UPDATE, QueryOptions.DEFAULT);
            final GraphOracleSem graph = new GraphOracleSem(oracle, "M_NAMED_GRAPHS", attachment);
            System.out.println("Analyzing db...");
            graph.analyze();
            System.out.println("Infering db...");
            graph.performInference();
    After running this code the database it seems inferred, but when I query it, it looks to me the data wasn't inferred.
    Does anyone have any clue to see how to infer data on Oracle?. Maybe I doing something wrong or I misunderstood something because I got empty response when I query for data that it should be inferred. The ontology should be okay, because when i create individuals on Protege and run the reasoner, the inferred data shows up perfectly.
    Cheers

    <?xml version="1.0"?>
    <!DOCTYPE rdf:RDF [
        <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
        <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
        <!ENTITY geosparql "http://www.opengis.net/ont/geosparql#" >
        <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
        <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
        <!ENTITY starguidecatalog "http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#" >
    ]>
    <rdf:RDF xmlns="http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#"
        xml:base="http://www.tng.iac.es/ontologies/2014/6/starguidecatalog"
        xmlns:geosparql="http://www.opengis.net/ont/geosparql#"
        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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:starguidecatalog="http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#">
        <owl:Ontology rdf:about="http://www.tng.iac.es/ontologies/2014/6/starguidecatalog">
            <owl:imports rdf:resource="http://www.opengis.net/ont/geosparql"/>
            <owl:imports rdf:resource="http://www.opengis.net/ont/sf"/>
        </owl:Ontology>
        <!--
        // Object Properties
        -->
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#border -->
        <owl:ObjectProperty rdf:about="&starguidecatalog;border">
            <rdf:type rdf:resource="&owl;SymmetricProperty"/>
            <rdfs:domain rdf:resource="&starguidecatalog;Tile"/>
            <rdfs:range rdf:resource="&starguidecatalog;Tile"/>
            <owl:inverseOf rdf:resource="&starguidecatalog;border"/>
        </owl:ObjectProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#hasPointGeometry -->
        <owl:ObjectProperty rdf:about="&starguidecatalog;hasPointGeometry">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:subPropertyOf rdf:resource="&geosparql;hasGeometry"/>
            <rdfs:range rdf:resource="http://www.opengis.net/ont/sf#Point"/>
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
        </owl:ObjectProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#insideOf -->
        <owl:ObjectProperty rdf:about="&starguidecatalog;insideOf">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:range rdf:resource="&starguidecatalog;Tile"/>
        </owl:ObjectProperty>
        <!--
        // Data properties
        -->
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#astroClass -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;astroClass">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;targetInfo"/>
            <rdfs:range rdf:resource="&xsd;float"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#coordinates -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;coordinates">
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;targetInfo"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#dec -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;dec">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;coordinates"/>
            <rdfs:range rdf:resource="&xsd;float"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#epoch -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;epoch">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;targetInfo"/>
            <rdfs:range rdf:resource="&xsd;integer"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#f -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;f">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;magnitude"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#id -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;id">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;targetInfo"/>
            <rdfs:range rdf:resource="&xsd;integer"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#j -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;j">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;magnitude"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#magnitude -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;magnitude">
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;targetInfo"/>
            <rdfs:range rdf:resource="&xsd;float"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#n -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;n">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;magnitude"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#ra -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;ra">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:domain rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;coordinates"/>
            <rdfs:range rdf:resource="&xsd;float"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#targetInfo -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;targetInfo">
            <owl:propertyDisjointWith rdf:resource="&starguidecatalog;tileInfo"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#tileInfo -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;tileInfo">
            <rdfs:domain rdf:resource="&starguidecatalog;Tile"/>
            <rdfs:range rdf:resource="&xsd;float"/>
        </owl:DatatypeProperty>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#v -->
        <owl:DatatypeProperty rdf:about="&starguidecatalog;v">
            <rdf:type rdf:resource="&owl;FunctionalProperty"/>
            <rdfs:subPropertyOf rdf:resource="&starguidecatalog;magnitude"/>
        </owl:DatatypeProperty>
        <!--
        // Classes
        -->
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#AstronomicalCoordinate -->
        <owl:Class rdf:about="&starguidecatalog;AstronomicalCoordinate">
            <rdfs:subClassOf rdf:resource="http://www.opengis.net/ont/sf#Point"/>
            <rdfs:subClassOf rdf:resource="&starguidecatalog;Sky"/>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="&starguidecatalog;hasPointGeometry"/>
                    <owl:allValuesFrom rdf:resource="http://www.opengis.net/ont/sf#Point"/>
                </owl:Restriction>
            </rdfs:subClassOf>
        </owl:Class>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#AstronomicalObject -->
        <owl:Class rdf:about="&starguidecatalog;AstronomicalObject">
            <owl:equivalentClass>
                <owl:Class>
                    <owl:unionOf rdf:parseType="Collection">
                        <rdf:Description rdf:about="&starguidecatalog;Galaxy"/>
                        <rdf:Description rdf:about="&starguidecatalog;Star"/>
                        <rdf:Description rdf:about="&starguidecatalog;Supernova"/>
                    </owl:unionOf>
                </owl:Class>
            </owl:equivalentClass>
            <rdfs:subClassOf rdf:resource="&starguidecatalog;Sky"/>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="&starguidecatalog;hasPointGeometry"/>
                    <owl:allValuesFrom rdf:resource="http://www.opengis.net/ont/sf#Point"/>
                </owl:Restriction>
            </rdfs:subClassOf>
        </owl:Class>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#Galaxy -->
        <owl:Class rdf:about="&starguidecatalog;Galaxy">
            <owl:equivalentClass>
                <owl:Class>
                    <owl:intersectionOf rdf:parseType="Collection">
                        <rdf:Description rdf:about="&starguidecatalog;AstronomicalObject"/>
                        <owl:Restriction>
                            <owl:onProperty rdf:resource="&starguidecatalog;astroClass"/>
                            <owl:hasValue rdf:datatype="&xsd;float">3.0</owl:hasValue>
                        </owl:Restriction>
                    </owl:intersectionOf>
                </owl:Class>
            </owl:equivalentClass>
            <rdfs:subClassOf rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="&starguidecatalog;border"/>
                    <owl:allValuesFrom rdf:resource="&starguidecatalog;Tile"/>
                </owl:Restriction>
            </rdfs:subClassOf>
            <owl:disjointWith rdf:resource="&starguidecatalog;Star"/>
            <owl:disjointWith rdf:resource="&starguidecatalog;Supernova"/>
        </owl:Class>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#Sky -->
        <owl:Class rdf:about="&starguidecatalog;Sky"/>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#Star -->
        <owl:Class rdf:about="&starguidecatalog;Star">
            <owl:equivalentClass>
                <owl:Class>
                    <owl:intersectionOf rdf:parseType="Collection">
                        <rdf:Description rdf:about="&starguidecatalog;AstronomicalObject"/>
                        <owl:Restriction>
                            <owl:onProperty rdf:resource="&starguidecatalog;astroClass"/>
                            <owl:hasValue rdf:datatype="&xsd;float">2.0</owl:hasValue>
                        </owl:Restriction>
                    </owl:intersectionOf>
                </owl:Class>
            </owl:equivalentClass>
            <rdfs:subClassOf rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="&starguidecatalog;border"/>
                    <owl:allValuesFrom rdf:resource="&starguidecatalog;Tile"/>
                </owl:Restriction>
            </rdfs:subClassOf>
            <owl:disjointWith rdf:resource="&starguidecatalog;Supernova"/>
        </owl:Class>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#Supernova -->
        <owl:Class rdf:about="&starguidecatalog;Supernova">
            <owl:equivalentClass>
                <owl:Class>
                    <owl:intersectionOf rdf:parseType="Collection">
                        <rdf:Description rdf:about="&starguidecatalog;AstronomicalObject"/>
                        <owl:Restriction>
                            <owl:onProperty rdf:resource="&starguidecatalog;astroClass"/>
                            <owl:hasValue rdf:datatype="&xsd;float">1.0</owl:hasValue>
                        </owl:Restriction>
                    </owl:intersectionOf>
                </owl:Class>
            </owl:equivalentClass>
            <rdfs:subClassOf rdf:resource="&starguidecatalog;AstronomicalObject"/>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="&starguidecatalog;border"/>
                    <owl:allValuesFrom rdf:resource="&starguidecatalog;Tile"/>
                </owl:Restriction>
            </rdfs:subClassOf>
        </owl:Class>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#Tile -->
        <owl:Class rdf:about="&starguidecatalog;Tile">
            <rdfs:subClassOf rdf:resource="http://www.opengis.net/ont/sf#Polygon"/>
            <rdfs:subClassOf rdf:resource="&starguidecatalog;Sky"/>
        </owl:Class>
        <!--
        // Individuals
        -->
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#Sun -->
        <owl:NamedIndividual rdf:about="&starguidecatalog;Sun">
            <rdf:type rdf:resource="&starguidecatalog;Star"/>
            <dec rdf:datatype="&xsd;float">0.773</dec>
            <ra rdf:datatype="&xsd;float">1.0</ra>
            <astroClass rdf:datatype="&xsd;float">2.0</astroClass>
            <hasPointGeometry rdf:resource="&starguidecatalog;SunCoordinates"/>
        </owl:NamedIndividual>
        <!-- http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#SunCoordinates -->
        <owl:NamedIndividual rdf:about="&starguidecatalog;SunCoordinates">
            <rdf:type rdf:resource="&starguidecatalog;AstronomicalCoordinate"/>
            <geosparql:asWKT rdf:datatype="&geosparql;wktLiteral">Point(12.0 13.3)</geosparql:asWKT>
        </owl:NamedIndividual>
    </rdf:RDF>
    <!-- Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net -->
    Please note this is a scenario for testing proposes only. It's not meant to be a real scenario !
    Cheers

  • Missing Simple Answer

    Hello,
    I am doing some testing over oracle's ST and have ran into a strange case, which I don't know whether I am doing something wrong or it is a bug.
    I have a simple owl ontology with two axioms:
    SubClassOf( A intersectionOf(B C))
    ClassAssertion(A a)
    and query for instances of B. Obviously a is an instance of B but I don't get this back as an answer. If I remove the C conjunct (i.e., have the axiom SubClassOf(A B)), then I get that a is an instance of B. If I am not doing something wrong this kind of implies that such axioms are not "normalised" into SubClassOf(A B) and SubClassOf(A C) (?)
    I am using Oracle 11g and accessing ST through Jena 2.6.3 and with the Jena adaptor (jena_adaptor_for_release11.2.0.2).
    Here is the Java class I am running
    ========= JAVA ==============
    package com.clarkparsia.pelletdb.examples;
    import static com.clarkparsia.pelletdb.examples.ExampleConnectionParams.JDBC_URL;
    import static com.clarkparsia.pelletdb.examples.ExampleConnectionParams.MODEL_NAME;
    import static com.clarkparsia.pelletdb.examples.ExampleConnectionParams.PASSWORD;
    import static com.clarkparsia.pelletdb.examples.ExampleConnectionParams.USERNAME;
    import java.io.File;
    import java.sql.SQLException;
    import oracle.spatial.rdf.client.jena.Attachment;
    import oracle.spatial.rdf.client.jena.GraphOracleSem;
    import oracle.spatial.rdf.client.jena.InferenceMaintenanceMode;
    import oracle.spatial.rdf.client.jena.ModelOracleSem;
    import oracle.spatial.rdf.client.jena.Oracle;
    import oracle.spatial.rdf.client.jena.QueryOptions;
    import com.hp.hpl.jena.query.Query;
    import com.hp.hpl.jena.query.QueryExecution;
    import com.hp.hpl.jena.query.QueryExecutionFactory;
    import com.hp.hpl.jena.query.QueryFactory;
    import com.hp.hpl.jena.query.QuerySolution;
    import com.hp.hpl.jena.query.ResultSet;
    import com.hp.hpl.jena.rdf.model.InfModel;
    public class Bug {
         public static void main(String[] args) throws Exception {
              Oracle oracle;
              ModelOracleSem dbModel;
              QueryExecution queryExecution;
              Query loadedQuery;
              String ontology = "C:/OWLPrimeBug.owl";
              String query = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" +
                                  "SELECT DISTINCT ?X WHERE {" +
                                  "?X rdf:type <http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#B> .}";
              loadedQuery = QueryFactory.create( query );
              oracle = new Oracle( JDBC_URL, USERNAME, PASSWORD );
              dbModel = ModelOracleSem.createOracleSemModel( oracle, MODEL_NAME );
              dbModel.read( "file:/" + ontology );
    //          Attachment attachment = Attachment.createInstance( new String[] {}, "RDFS", InferenceMaintenanceMode.NO_UPDATE, QueryOptions.DEFAULT);
              Attachment attachment = Attachment.createInstance( new String[] {}, "OWLPRIME", InferenceMaintenanceMode.NO_UPDATE, QueryOptions.DEFAULT);
              GraphOracleSem graph = new GraphOracleSem(oracle, MODEL_NAME, attachment);
              graph.performInference();
              dbModel = new ModelOracleSem( graph );
    //          dbModel.commit();
    //          queryExecution = QueryExecutionFactory.create( loadedQuery, pelletDbModel );
         queryExecution = QueryExecutionFactory.create( loadedQuery, dbModel );
              ResultSet rs = queryExecution.execSelect();
              if( rs == null )
                   System.out.println( "h: " + 0 );
              long results = 0;
    //          ResultSetFormatter.out( rs );
              while( rs.hasNext() ){
                   QuerySolution sol = rs.next();
    //               System.out.println( sol.get("X") );
                   results++;
              System.out.println( results );
              dbModel.removeAll();
              dbModel.commit();
              dbModel.close();
              oracle.dispose();
    =============== ONTOLOGY ===============
    <?xml version="1.0"?>
    <!DOCTYPE rdf:RDF [
    <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
    <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
    <!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
    <!ENTITY Ontology1305861504984 "http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#" >
    ]>
    <rdf:RDF xmlns="http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#"
    xml:base="http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:Ontology1305861504984="http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#">
    <owl:Ontology rdf:about=""/>
    <!--
    // Classes
    -->
    <!-- http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#A -->
    <owl:Class rdf:about="#A">
    <rdfs:subClassOf>
    <owl:Class>
    <owl:intersectionOf rdf:parseType="Collection">
    <rdf:Description rdf:about="#B"/>
    <rdf:Description rdf:about="#C"/>
    </owl:intersectionOf>
    </owl:Class>
    </rdfs:subClassOf>
    </owl:Class>
    <!-- http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#B -->
    <owl:Class rdf:about="#B"/>
    <!-- http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#C -->
    <owl:Class rdf:about="#C"/>
    <!-- http://www.w3.org/2002/07/owl#Thing -->
    <owl:Class rdf:about="&owl;Thing"/>
    <!--
    // Individuals
    -->
    <!-- http://www.semanticweb.org/ontologies/2011/4/Ontology1305861504984.owl#a -->
    <A rdf:about="#a">
    <rdf:type rdf:resource="&owl;Thing"/>
    </A>
    </rdf:RDF>
    <!-- Generated by the OWL API (version 2.2.1.1138) http://owlapi.sourceforge.net -->

    Hi,
    I assume you are using Oracle Database release 11.2.0.2.
    What you observed is expected. OWLPrime itself does not handle intersection semantics. To get what you want, there are two approaches.
    1) use OWL2RL instead of OWLPRIME, or
    2) use performInference("INTERSECT,INTERSECTSCOH") instead of performInference()
    The 2) specifies two additional ifnerence components (on top of OWLPrime) for intersection related semantics. You need to run deleteInference first.
    Thanks,
    Zhe Wu

  • SPARQL query to query an ontology using JENA

    Hello,
    I'm trying to query my OWL ontology.
    This is an example of my ontology:
        <owl:Class rdf:about="#escherichia_coli">
            <owl:equivalentClass>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="#has_genus"/>
                    <owl:someValuesFrom rdf:resource="#escherichia_genus"/>
                </owl:Restriction>
            </owl:equivalentClass>
            <rdfs:subClassOf rdf:resource="#named_bacteria"/>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="#has_respiratory_mode"/>
                    <owl:someValuesFrom rdf:resource="#Aerobes"/>
                </owl:Restriction>
            </rdfs:subClassOf>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="#hasGramStaining"/>
                    <owl:someValuesFrom rdf:resource="#gram_staining_negative"/>
                </owl:Restriction>
            </rdfs:subClassOf>
            <rdfs:subClassOf>
                <owl:Restriction>
                    <owl:onProperty rdf:resource="#has_morphology"/>
                    <owl:someValuesFrom rdf:resource="#rod"/>
                </owl:Restriction>
            </rdfs:subClassOf>
        </owl:Class>I would like to retrieve all bacterium caracteristics (morphology, gram_staning, respiratory_mode).
    Whith this query, i can show the bacteria list.
    PREFIX rdfs:     <http://www.w3.org/2000/01/rdf-schema#>
    PREFIX :            <http://www.ontology.com/bacteria.owl#>
    PREFIX owl:      <http://www.w3.org/2002/07/owl#>
    SELECT DISTINCT *
    WHERE {
         ?bacteria rdfs:subClassOf :named_bacteria.
         FILTER (isIRI(?bacteria) && !sameTerm(?bacteria, owl:Nothing))
    ORDER BY (?bacteria)With this query, i tried to have all caracteristics, but it doesn't work (i also used the UNION clause, but it doesn't work to):
    SELECT DISTINCT ?bacteria ?genus
    WHERE  {
           ?bacteria rdfs:subClassOf :named_bacteria;
                     :has_genus ?genus.
         ?genus    rdfs:subClassOf :genus;
         FILTER (isIRI(?bacteria) && !sameTerm(?bacteria, owl:Nothing))
    } ORDER BY (?bacteria)My second question is how to use query 2 graph with JENA? I've a .java file in wich i used some JENA properties to query an OWL file (i open my owl file and my .rq file with the SPARQL query in my .java File). But i need to query also a .n3 File, is it possible to do this only in my SPARQL query?
    Please, i really need your help!
    Kind regards

    One thing to clarify, are you using just Jena or are you using Jena + Jena Adaptor + Oracle database?
    Thanks,
    Zhe Wu

  • How to use a variable where some Java API expects an integer value ???

    Hi all,
    This may not be a proper forum to submit this query but since its a Java related problem & there are many experience people, I hope I can get some good hint and advice to solve this problem.
    I have to pass an integer value to a SPARQL query. I am using Allegrograpg API for Java application. But I am receiving the value in a variable and query accepts it as an integer. How can this kind of problem be solved. I put query under so you can see it.
    " SELECT DISTINCT ?Pattern ?Model WHERE" +
    "{ ?class rdfs:subClassOf [ owl:onProperty :locationID; " +
    " owl:hasValue \"1000\"^^xsd:int ]."+........
    The query expects an integer as has value.
    My apology again for posting it here but since its a Java releted problem, I hope some body can give me some good advice.....

    Ahhh, I don't think it is so terrible, it just depends where from is coming the variable that you are interpolating.
    The main reason for using PreparedStatement is efficiency. If you want to be safe from SQL injection you just have to do a simple REGEX substitution over the SQL string.
    --janeiros                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Extractvalue problem

    hi
    The result of
    extractValue(value(x),'//owl:Ontology//rdfs:label') is empty. I tried different way but without any success.
    Any idea what can be the problem?
    Thanks
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#">
    <owl:Ontology>
    <rdfs:comment>An example OWL ontology</rdfs:comment>
    <rdfs:comment>Derived from the DAML Wine ontology at
    http://ontolingua.stanford.edu/doc/chimaera/ontologies/wines.daml
    Substantially changed, in particular the Region based relations.
    </rdfs:comment>
    <rdfs:label>Wine Ontology</rdfs:label>
    </owl:Ontology>
    </rdf:RDF>

    If your document contains Namespaces, you must supply the namespace definitions as the last argument to extractValue, or the any of the other xpath based functions. You must also use the correct namespace prefixes in the xpath expression itself
    Eg
    extractValue(value(x),'//owl:Ontology//rdfs:label',
    'xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"')

  • Submit sparql using sqlplus

    I want to run a sparql query using sqlplus. I got something real simple to work fine like:
    select s,typ from table(sem_match('(?s rdf:type ?typ)', sem_models('cnodb'), null, null, null))
    However, I get errors when the sparql is a bit more complex like this:
    select subj,rel,obj from table(sem_match('(?s rdf:object ?obj . ?s rdf:subject ?subj . ?s dc:relation ?rel)', sem_models('cnodb'), null, null, null))
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.spatial.rdf.server.ParseException: Encountered "." at line 1, column 21.
    Was expecting:
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 203
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 67
    ORA-06512: at line 4
    Does anyone know the proper syntax to submit this sparql? Thanks.
    Russ

    I can run queries with paranthesis syntax.
    However, when I run the following query:
    select scan_num, rt from table(sem_match(
    '{ ?s rdf:type owl:scan.
    ?s owl:_num ?scan_num.
    ?s owl:_retentionTime ?rt. }',
    sem_models('final1'), null,SEM_ALIASES(SEM_ALIAS('owl','http://www.owl-ontologies.com/mzxml.owl#')),null,null,null));
    I get following results:
    select scan_num, rt from table(sem_match(
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.spatial.rdf.server.ParseException: Encountered "?s" at line 2, column 4.
    Was expecting one of:
    "OPTIONAL" ...
    "FILTER" ...
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 203
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 67
    ORA-06512: at line 4
    Elapsed: 00:00:00.05
    sqlplus OK
    May I know what the error could be?

  • Inference engine

    Does the inference engine used by Oracle 10g2 have a name? Is it an engine that was developed by a third party? Was it developed by Oracle? If it does not have a name, is it of a specific type? I am not referring to supporting RDF, RDFS or OWL. Someone has asked me if the engine name is Pellet. Any ideas?
    Thanks,
    Peter

    The Oracle 10gR2 inference was developed at Oracle. It is not Pellet (which is an open source inference engine).
    I am not sure what you mean when you ask whether it is of a specific type. The inference engine at Oracle is a SQL based engine. It supports RDF, RDFS and user-defined rules in 10gR2 and support for OWL is planned in a future release.
    Melli
    (Oracle Semantic Technologies group)

  • Oracle rdf protege plugin and owl

    Does the oracle rdf plugin for protege support writing owl files into oracle rdf storage backend? I tried saving a new protege owl project, and get stack dumps (see below).
    Thanks
    In saveKnowledgeBase 1
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :100)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :130)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :215)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:378)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    434)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:31)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:772)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at oracle.ORDFFrameCreator.finish(ORDFFrameCreator.java:349)
    at edu.stanford.smi.protegex.storage.walker.protege.ProtegeFrameWalker.w
    alk(Unknown Source)
    at oracle.OKnowledgeBaseFactory.saveKnowledgeBase(OKnowledgeBaseFactory.
    java:177)
    at oracle.OImportExportPlugin.exportProject(OImportExportPlugin.java:124
    at oracle.OImportExportPlugin.handleExportRequest(OImportExportPlugin.ja
    va:109)
    at edu.stanford.smi.protege.ui.ProjectManager.exportProjectRequest(Unkno
    wn Source)
    at edu.stanford.smi.protege.action.ExportPluginAction.actionPerformed(Un
    known Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
    Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    null : : : http://www.w3.org/1999/02/22-rdf-syntax-ns#type : http://protege.stan
    ford.edu/system#owl_ontology
    java.lang.NullPointerException
    at oracle.ORDFFrameCreator.finish(ORDFFrameCreator.java:403)
    at edu.stanford.smi.protegex.storage.walker.protege.ProtegeFrameWalker.w
    alk(Unknown Source)
    at oracle.OKnowledgeBaseFactory.saveKnowledgeBase(OKnowledgeBaseFactory.
    java:177)
    at oracle.OImportExportPlugin.exportProject(OImportExportPlugin.java:124
    at oracle.OImportExportPlugin.handleExportRequest(OImportExportPlugin.ja
    va:109)
    at edu.stanford.smi.protege.ui.ProjectManager.exportProjectRequest(Unkno
    wn Source)
    at edu.stanford.smi.protege.action.ExportPluginAction.actionPerformed(Un
    known Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
    Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    WARNING: java.lang.NullPointerException -- OImportExportPlugin.handleErrors()

    dlrubin
    did you ever figure out your problem? I'm having the same error.
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    Not 100% sure where my error is coming from, if its a classpath issue or something else. Just wanted to see if you came up with a solution. Thanks

Maybe you are looking for

  • My I pad does not find my HP 7525 as an airprint printer

    I am on a wireless network at my home but when I try to print with my HP Photosmart 7525 printer my Ipad says no airprinters found.  I can print from my android phone and my Ipad is on the correct network.  ??? This question was solved. View Solution

  • CIN for Goods Return to Vendor

    Hi Could some one can let me know how to update the RG23 D register in case of return to vendor from depot plant. 1.. ME21N - Create a Returns PO (Activate "Returns" indicator for PO line item) 2. MIGO - Goods Receipt > Purchase Order (Returns PO) (H

  • Question re Installation of Win 7 (retail) on Mac Pro

    I am currently dual booting SL and Vista.I currently have Vista 32 installed on a dedicated, second internal drive on my MacPro. I have purchased the upgrade version of Win 7 Ultimate. I have added a new, "raw" third internal hard drive on which I wo

  • My new mission in life to let everyone know what a rip-off, greedy corporation HP has become

    I have been a faithful fan of HP for decades.  I started out on an HP IIIP.  It was great.  A real workhorse.  Through the years I have noticed the quality of HP printers declining, but I stuck with them.   I currently have an HP Officejet Pro8600.  

  • Critical issues in MM

    Hi Gurus, Can anybody tell me one of the most critical/ challenging issues in MM implementation Thanks in advance, Kumar