Write Oracle models to RDF

I'm writing patterns that I have in my database of 12 c Oracle to RDF. I am using Jena, and the code goes something like this:

Oracle Oracle = f.getOracle (); My shortcut to get access to the database and give me an Oracle object.

Model model;

try {model = ModelOracleSem.createOracleSemModel (oracle, modelName) ;}}

catch (SQLException ex) {}

ErrorHandling

}

Model.Write (out);

Now, it works. But it works so terribly slow. I see almost every individual downloaded triplet. 30 MB takes me three hours, which is totally unusable.

Are there other ways to do it?

Hi M.R. Strand.

What RDF format do you use? N - TRIPLE is recommended when dumping on a large RDF graph.

Try this and let me know if it helps. We can also turn on the parallel execution, if your hardware

several processor cores and sufficient bandwidth I/O.

OutputStream os = new FileOutputStream("/tmp/dump.nt");

Model.Write (os, "N-TRIPLE" "");

Thank you

Zhe Wu

Tags: Database

Similar Questions

  • Unable to read write-back model

    First of all, I apologize for posting this thred because I know that there are many thread like this, but I look and I could not solve my problem.

    I have writeback.xml file.

    & lt;? XML version = "1.0" encoding = "utf-8"? & gt;
    & lt; WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1" & gt;
    & lt; WebMessageTable lang = "" en - us "system ="WriteBack"table = 'Messages' & gt;"
    & lt; Informed name = "writeback" & gt;
    & lt; XML & gt;
    & lt; writeback connectionPool = "SH" & gt;
    & lt; Insert & gt; INSERT INTO ARTIKL (SIFRA, COMPANY, NC, PC)
    VALUES (@{c2},'@{c3}',@{c4},@{c5}) & lt; / insert & gt;
    & lt; Update & gt; & lt; / Update & gt;
    & lt; / writeback & gt;
    & lt; / XML & gt;
    & lt; / Informed & gt;
    & lt; / WebMessageTable & gt;
    & lt; / WebMessageTables & gt;

    And I tried to rewrite the data in the column * {color: #3366ff} {color} PC * table ARTIKL that has data like this:

    SIFRA - COMPANY - NC - {color: #3366ff} PC{color}
    1 - shirt - 2-0

    But I got error _ ' the system is unable to read write back model "writeback".» Please contact your system administrator. ' _ when I tried to insert data.

    I used [http://oraclebizint.wordpress.com/2007/09/20/oracle-bi-ee-101332-write-back-option-budgetingplanning/] blog of Vincent J

    Thank you

    Published by: Micek on 2009.01.13 10:58

    1.), you don't need to call your "writeback" as your informed XML file. The reference in point answers to and not writeback.xml

    2.) did you put the file in the correct location? That is \OracleBI\web\msgdb\customMessages?

    3.) did you restart your services or at least hit "Reload the files and metadata" in the administration of server close?

    4.) are you sure that you want to do is INSERT and not an update?

    I tested your file here, and it fires off like that.
    Recording: "83728test100100.

    See you soon,.
    C.

  • Error during execution of Oracle model appearance shape - (LAF_TEMPLATE)

    Version of forms 10.1.2.3
    JRE version 1.6.0_30
    Windows XP operating system


    I am trying to Setup oracle project aspect on my local machine.
    For this, I upgraded forms to 10.1.2.3, then I applied way too don't * 9593176 * (but not yet completed the steps related to jacob and webutil).

    Problem: when I run the model form of Oracle appearance it comes up with an error message. *

    Version forms cmdlet is: 10.1.2.3
    Exception in thread "thread of applet - oracle.forms.engine.Main - 1 ' java.lang.NoSuchMethodError: oracle.forms.handler.IHandler.getApplet (Ljava/applet/Applet);
    at oracle.forms.fd.DrawLAF.init(DrawLAF.java:285)
    at oracle.forms.handler.UICommon.instantiate (unknown Source)
    at oracle.forms.handler.UICommon.onCreate (unknown Source)
    at oracle.forms.handler.JavaContainer.onCreate (unknown Source)
    at oracle.forms.engine.Runform.onCreateHandler (unknown Source)
    at oracle.forms.engine.Runform.processMessage (unknown Source)
    at oracle.forms.engine.Runform.processSet (unknown Source)
    at oracle.forms.engine.Runform.onMessageReal (unknown Source)
    at oracle.forms.engine.Runform.onMessage (unknown Source)
    at oracle.forms.engine.Runform.sendInitialMessage (unknown Source)
    at oracle.forms.engine.Runform.startRunform (unknown Source)
    at oracle.forms.engine.Main.createRunform (unknown Source)
    at oracle.forms.engine.Main.start (unknown Source)
    to sun.plugin2.applet.Plugin2Manager$ AppletExecutionRunnable.run (unknown Source)
    at java.lang.Thread.run (unknown Source)

    Hello

    I've spent a lot of time to indicate each time I have that you don't have to ask questions about the forces armed Lebanese this forum. You have two other locations, a dedicated e-mail and a dedicated forum.

    At first glance, it seems that you have not used the laf_10123.jar in your tag archive.

    Thank you

    François

  • Privileges to protected need to connect to Oracle 12 c RDF

    Hi guys,.

    SYSDBA has no problem connecting, but given the organizational constraints, we need an account without full SYSDBA privileges.

    I've seen references to "obscure" the necessary privileges to connect to a database of RDF's protégé. The two (very) old references I found were:

    -grant to the account query rewriting.

    -grant the account of CREATE_INEXTYPE

    Unfortunately I still get "insufficient privileges" and there is nothing on the protected side to indicate a specific error.

    Any ideas?

    Thank you

    John

    Hi John,.

    The following should be enough.

    Grant connect, resource to .

    You can also run:

    Grant connect, resources, unlimited tablespace to ;

    It will be useful,

    Zhe Wu

  • How to write good model to replace the string after a static string?

    Select regexp_replace ("Do replace not CONSTANT" VAR_123 "needs to be replaced", "CONSTANT" [A-Z0-9] ',' CONSTANT "REPLACE") twice;

    The output is:
    Does not replace CONSTANT 'REPLACEAR_123' SHOULD be replaced

    Output available is:
    Does not replace CONSTANT 'REPLACE' SHOULD be replaced


    What is the right model to solve my problem?

    Assistance is needed.


    Concerning

    possible alternatives

    /* replace everthing in between "" */
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '"([A-Z0-9_]*)"' ,'"REPLACE"')
    from dual;
    
    Do not replace CONSTANT "REPLACE" should be replaced 
    
    /* replace UPPER letters, Numbers and Underscore after keyword CONSTANT an in between "" */
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '(CONSTANT) "([A-Z0-9_]*)"' ,'\1 "REPLACE"')
    from dual;
    
    Do not replace CONSTANT "REPLACE" should be replaced 
    
    /* replace alphanumerica values including underscore after keyword CONSTANT an in between "" */
    
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '(CONSTANT) "([[:alnum:]_]*)"' ,'\1 "REPLACE"')
    from dual;
    

    One of the problems is that did ' t take you into account how the underscore character '_' is recognized.

  • RDF Triple in Oracle Data Miner

    Minor data read Oracle triples of RDF data if will want to do a classification to them? or it reads only flat data? There are links on how to use minor oracle data to perform the ranking on triple RDF data?

    Hello

    Very good question! How to get RDF to work with ODM is simple. You can create the view or a physical table based on a query SPARQL (which, in your case, aims to release interesting part of the graph that you want to perform the classification on). After that, simply feed this view or table to ODM tool.

    Following 24-40 presentation of presentation slides on the integration of RDF in R, ODM and OBIEE. They might be useful.

    http://download.Oracle.com/otndocs/tech/semantic_web/PDF/semtech2012_presentations/semtech2012_candidate_v5.PDF

    Thank you

    Zhe Wu

  • 4.1.1 SDDM - importing Oracle Designer model

    Hello world

    I'm trying to import Oracle Designer model to replace Designer 10.1.

    To do this, I would like to use the latest version and I have this error with SDDM 4.1.1 when I try to import Oracle Model Designer:

    2015-06-30 14:48:28, 055 [main] INFO ApplicationView - Data Modeler Oracle SQL Developer 4.1.1.887

    2015-06-30 14:51:27, 635 [Thread 23] ERROR ODExtractionHandler - error when importing the repository Designer

    java.lang.ClassCastException: oracle.dbtools.crest.model.design.relational.TableView cannot be cast to oracle.dbtools.crest.model.design.relational.Table

    at oracle.dbtools.crest.imports.oracledesigner.relational.ODOView.initViewColumns(ODOView.java:458)

    at oracle.dbtools.crest.imports.oracledesigner.relational.ODOView.generate(ODOView.java:291)

    at oracle.dbtools.crest.imports.oracledesigner.ODExtractionHandler.generateDesign(ODExtractionHandler.java:593)

    to oracle.dbtools.crest.imports.oracledesigner.ODExtractionController$ Runner.run (ODExtractionController.java:154)

    at java.lang.Thread.run(Thread.java:745)

    I have exactly the same error with SDDM 4.1.0

    2015-06-30 14:02:41, 779 [main] INFO ApplicationView - Data Modeler Oracle SQL Developer 4.1.0.881

    2015-06-30 14:06:27, 514 [Thread-24] ERROR ODExtractionHandler - error when importing the repository Designer

    java.lang.ClassCastException: oracle.dbtools.crest.model.design.relational.TableView cannot be cast to oracle.dbtools.crest.model.design.relational.Table

    at oracle.dbtools.crest.imports.oracledesigner.relational.ODOView.initViewColumns(ODOView.java:445)

    at oracle.dbtools.crest.imports.oracledesigner.relational.ODOView.generate(ODOView.java:283)

    at oracle.dbtools.crest.imports.oracledesigner.ODExtractionHandler.generateDesign(ODExtractionHandler.java:593)

    to oracle.dbtools.crest.imports.oracledesigner.ODExtractionController$ Runner.run (ODExtractionController.java:154)

    at java.lang.Thread.run (Thread.java:745

    This error doesn't seem to appear in SDDM 4.0.3.

    Is there a regression? Or can I change something in the designer to avoid this error?

    Thanks for your help.

    Best regards

    Cédric

    Hi Cedric,

    Thanks for reporting this.  I connected a bug on this issue.

    It seems that this problem occurs whenever a view references another view.

    If the 4.0.3 version works for you, you probably better to stick with that until this problem is resolved.

    David

  • Custom rule works in the view RDF model?

    We create a model to view RDF from relational tables.

    Based on triplets mapped, we've created some custom rules in the rules of user base.

    Drop the involvement and create involvement again.

    But the query on the view model of RDF with defined rules of user base seems to be nothing happens.

    Could you please confirm if RDF model view support def rule base?

    Thank you.

    Note that user-defined inference would always regenerate involvement anyway.

    But, in addition, in the case of the model of RDFView materialized, the relational RDF conversion must be re-materialized if the content of the source tables changed since the last materialization of the RDF triple.

    Thank you

    -Smiled.

  • Need help to write to Oracle and SQL Server in the Oracle triggering

    We have a third which feeds data for us. Their client application feeds directly to some source tables in our Oracle database 10g. We have triggers on those tables that sort and treat lines as they come.

    We have a new operation and try to write some of these incoming data now to a SQL Server database through heterogeneous services - essentially the same exact data in two databases. I have a related database that works very well for the selection, but I've never tried to write Oracle PL/SQL to write in a DB SQL Server 2008. My first attempt was met with the following error: "ORA-02047: impossible to join the current distributed transaction.

    I found another thread where they say that the only way to do it is by using a stand-alone transaction, but they do not give an example. Here is the section of relaxation that I use:
      select to_char(new_date,'MM-DD-YYYY') into sql_txt from dual;
      insert into mancamp_location@sqlweb
           ("UnitID", "ManCampID", "Lat", "Long", "UpdateDT", "VehSpeed", "VehDirection", "Landmark")
        values (v_truck, f_unit, f_lat, f_long, sql_txt, f_spd, f_dir, f_ldmk);
    Can someone point me to a way to accomplish this simple insertion?

    An example of a standalone trigger is:

    Suppose you have a table in Oracle:

    CREATE TABLE emp_sal
    (
    EMPNO NUMBER 4,
    SAL NUMBER (7.2));

    and a similar table in a SQL server:
    SQL Server:

    CREATE TABLE emp_sal
    (
    EMPNO NUMERIC (4).
    SAL NUMERIC (7.2));

    Then, you can create an insert trigger that replicates the data:
    CREATE OR REPLACE TRIGGER dg4odbc_repl AFTER INSERT ON emp_sal
    FOR EACH LINE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB '.
    VALUES (: new.empno,: new.sal);
    COMMIT;
    END;
    /

    -Note the validation, otherwise risk of ORA-6519

    When you now insert a record into the Oracle database:
    insert into emp_sal values (1234, '1200,89');
    the trigger is activated and inserts the record in SQL Server:
    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    It works fine when you post data insert, but as soon as restore you the insert only data Oracle will be cancelled - data will remain as long as the independent transaction dedicated to its SQL Server insert:

    insert into emp_sal values (1384, '1200,89');
    Rollback;
    Select * from emp_sal;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89
    1384 1200.89

    So I strongly recommend to use the DG4MSQL gateway which is able to participate in distributed transactions and allows validation/restore transactions.

    DG4ODBC lie on OTN (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html-online check out the "See all" link for your favorite platform), cloud of delivery of software Oracle (https://edelivery.oracle.com/) or "My Oracle Support". My Oracle support welcomes the latest version 11.2.0.3. In My Oracle Support goto patches and updates, then search for 11.2.0.3 data set Patch 10404530patch: 11.2.0.3.0 PATCH SET for ORACLE database SERVER, choose your preferred platform and see the Readme which CD contains the gateway software.

    Published by: kgronau on April 24, 2012 08:44

  • Problem with Write Back

    Hi all


    I have a requirement where the user can writeback to a field.

    The table has two columns COMBI and SERVICE_REV.

    COMBI is the cloumn key.


    Here is the code in the write-back model.

    <? XML version = "1.0" encoding = "utf-8"? >
    < WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1" >
    < WebMessageTable = lang "" en - us "system ="writeBack"table = 'Messages' >"
    < informed name = "CUST_FPP_REV1" >
    < XML >
    < writeBack connectionPool = "RecoPool" >
    < Insert > INSERT into every DAY. REVRECAT SERVICE_REV = @(c4) where COMBI =' @(c17)' < / insert >
    < Updated > updated DAILY. REVRECAT set SERVICE_REV = @(c4) where COMBI =' @(c17)' < / update >
    < / writeback >
    < / XML >
    < / Informed >
    < / WebMessageTable >
    < / WebMessageTables >

    I get the error message like

    "An error occurred when writing to the server. Please check that you have entered the proper values. If the problem persists, contact your system administrator.
    ODBC driver returned an error (SQLExecDirectW).
    Error details
    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43093] An error occurred when processing the statement EXECUTE PHYSICS. [nQSError: 17001] Oracle error code: 904, message: ORA-00904: 'C4': invalid identifier in the OIC call OCIStmtExecute: DAILY UPDATE. REVRECAT set SERVICE_REV = (c4) where COMBI = '(c17)'. [nQSError: 17011] Execution of the SQL statement failed. (HY000)
    SQL issued: RUN the POOL RecoPool UPDATED DAILY PHYSICAL CONNECTION. REVRECAT set SERVICE_REV = (c4) where COMBI = '(c17)'.

    Also, I tried to hardcode values.

    instead of c4, I used 123456 and c17, I took the value in the table

    It worked.

    Thus the writeback arrives when I hardcode the values.

    The xml code that I used is appropriate.

    Please help me

    Appreciate your immediate response.

    Kind regards
    Vidal has

    use {and} instead of (and) to your column references:

    INSERT every DAY. {REVRECAT SERVICE_REV=@{c4} where COMBI='@{c17}'
    DAILY UPDATE. {REVRECAT set SERVICE_REV=@{c4} where COMBI='@{c17}'

    What about John
    http://obiee101.blogspot.com/

  • Oracle and Geomedia

    Hi all
    I work with Oracle and Geomedia pro v6. On Geomedia, I opened 2 connections: 1) access connection with a mdb file. (2) oracle object model reading / writing connection with an empty database. I want to send the access data to the Oracle database; I click on warehouse-> output of feature classes, then I put: source connection = connection access, but when I put connection target = model object in read-write Oracle connection I have this message: unable to find the GAlias table in the connection to the source. What is the problem?

    Thank you!

    Published by: user3309023 on 14-ott-2008 20.52

    GeoMedia uses a metadata schema to manage access to Oracle Spatial data. The metadata schema is called GDOSYS and is created using the utility database GM utilitiy program. Check Appendix B in working with Guide GeoMedia professional for more information.

    The error indicates that the metadata GDOSYS schema does not exist.

    Chuck

  • DVD HP dvd200i drive: HP DVD Writer dvd200i installation software

    I removed my OEM HP DVD Writer dvd200i from HP Win XP machine died at a Win 7 machine.  It is not recognized, so I guess I need s/w installation.  Am I correct, and where can I get the s/w?  I searched HP support and can't find any s/w installation it for HP DVD Writer dvd200i model.

    What you need is not the installation software, but a driver.

    To appear in Device Manager?  If so, clidk right it and update driver.  It must install at least one generic driver.

    This isn't a young unit and unfortunately HP only provides drivers for it up to Windows XP.  You try to install the driver compatibility by right click on the downloaded exe file then compatibility mode.

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?cc=us&DLC=en&LC=en&product=81681&

  • Configure the name of the model of visa

    Hi all

    This is probably very simple, but I'm stuck.

    I want to write the model name programmatically, (do not use MAX), on a VISA resource but I can't change the model name of property to write.  Anyone know how I can do this, see the attachment?

    Thank you

    Sean

    Hi Sean,.

    I don't think that this is possible, why do you need to change the name of the model? There could be another way to run the feature you're looking for.

    Kind regards

  • Procedure of ODI with slow performance (SOURCE and TARGET are different Oracle databases)

    Hi experts,

    I have an ODI procedure but its market with slow performance (SOURCE and TARGET are different Oracle databases), you can see below.

    My question is:

    It is possible write Oracle BULK COLLECT at the 'command on the target' (below)? or

    There is a KM of ODI that perform this task below in a quick way? If so, what KM can you guys suggest me?

    I found 'Oracle Append (DBLINK) control' but I try to avoid creating the dblink database.

    ===============================================================================

    * COMMAND ON the SOURCE (* technology: ORACLE * logic diagram: ORACLE_DB_SOURCE):

    SELECT NUM_AGENCIA, NUM_CPF_CNPJ, NOM_PESSOA

    < % = OdiRef.getSchemaName ("D") % >. < % = odiRef.getOption ("P_TABELA") % >

    ===============================================================================

    *ON the COMMAND TARGET (* technology: ORACLE * logic diagram: ORACLE_DB_TARGET):

    BEGIN

    INSERT INTO DISTSOB_OWNER. DISTSOB_PESSOA (NOM_PESSOA, NUM_CPF_CNPJ, FLG_ATIVO)

    VALUES ('#NOM_PESSOA', '#NUM_CPF_CNPJ', THE FROM ');

    EXCEPTION WHEN DUP_VAL_ON_INDEX THEN

    NULL;

    END;

    ===============================================================================


    Thank you guys!

    Please use SQL for SQL command Append KM... You can delete the unnecessary steps in the KM.E.g. fi you won't create I$ table, control flow etc, then you can remove related steps.

    Please try with that.

  • Model for the publication of HTML5

    Hi, question about the import of the model.

    When I write in model

    < meta name = "ad.size" content ="width = $WT, height = $HT" > "

    and inport to animate CC, I have a message:

    "Failed to import: invalid template file.

    But if I take $WT and $ $HT, everything works fine.


    How can I input variable dynamics in the meta tags?

    Hello

    This function has been activated in the version of the patch. You can now use the variable token such as $HT, $WT etc anywhere in your html template file. In the published output HTML, all the chips will be replaced with their corresponding values. To get the version of the patch just to go to the creative cloud desktop application and update your Application host.

    Thank you

    Prashant

Maybe you are looking for

  • 6 s iPhone shuts off and won't turn on

    Hi, my iPhone 6 just off himself to 80% battery. I tried to turn it on, but only an gray Apple came and it stayed like that for about 20 min and it heats up but it does not come. No idea what would cause that? Or how I could turnout on?

  • How to burn DVD when my Mac Mini is not a taken SuperDriver support

    I made iMovie project. When I wanted to create iDVD project I received a message < Your Macintosh has not have supported SuperDrive. Please note that while you will be able to work with the iDVD project, you will not be able to burn a DVD disc > OS X

  • Very poor service

    Hello I used 6plus iphone I was buyed in UNITED Arab Emirates. and I replaced my device to isight camera replacement program do to camera problems. But the people from the AXIOM says to 450USD for replcement, although my device is eligible for replac

  • Text vs iMessage (green and blue)

    When I send a text to a particular person turns green (text) but when they text me I get blue (iMessage). It appears a two different conversations. Why is this and how do I default iMessage?

  • Control of Toshiba Satellite A100: Buttons no longer work after the Xp update

    Toshiba satellite A100 iOwn and use Windows XP Edition family.After installation of windows update a few days ago from the functional buttons on the left side of the keyboard stop working - I can use the top running internet explorer or windows media