Jena Driver repeating "Final Clause"

I am using the Jena Adaptor to query some data out of my models. My current SPARQL query retrieves data from 2 models: gene and homologene. I am executing my query within NetBeans. During the query execution, Netbeans shows some output from Oracle as it translates my SPARQL query into a series of 'SELECT...FROM table(sdo_rdf_match...' statements. I am joining data from 2-3 models in most of my queries. All of my other queries run fine (they generate 2-3 'SELECT...FROM table(sdo_rdf_match...' statements and return the data quickly). This SPARQL query is generating the following statements:
INFO [main] (SimpleLog.java:47) - Final clause = SELECT...FROM table(sdo_rdf_match...sdo_rdf_models('GENE')...
INFO [main] (SimpleLog.java:47) - Final clause = SELECT...FROM table(sdo_rdf_match...sdo_rdf_models('HOMOLOGENE')...
The second type of statement (where the data is returned from the HOMOLOGENE model) is repeated over 100 times. It looks like the statement is repeated for each match from the HOMOLOGENE model. Here is my SPARQL query:
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> " +
"SELECT ?gene ?article_gene " +
"WHERE " +
"{ " +
" GRAPH <http://gene> " +
"{ ?gene rdfs:label ?genename } " +
"GRAPH <http://homologene> " +
"{ ?homologous_gene_record <has_homologous_gene_record> ?article_gene . " +
" ?homologous_gene_record <has_homologous_gene_record> ?gene } " +
"} LIMIT 50";
Can I do something to speed up the execution of this query? Is there something about my SPARQL query? I am currently limiting my data to return 50 items. I really want to get all the data back.
Thanks,
Chuck

Could you please add the following to your Java command line?
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
-Dorg.apache.commons.logging.simplelog.defaultlog=warn
They should cut down the logging.

Similar Messages

  • Purpose of a finally clause ??

    What is the purpose of a finally clause? Could you give a short example?

    The finally clause is used in exception handling. To prevent a program from terminating abnormally, you use a try statement followed by a catch clause. The use of finally clause is that it executes no matter how many exceptions have been handled. Hence, it can be used to close opened files, disconnect from a database etc.
    finally
    file.Close();
    }

  • How to import footage to an external hard drive in Final cut pro X

    I am having trouble importing footage from camera directly to an external hard drive in final cut pro X. When I go to import the footage, and select where I want it to be saved, my external drive is not even listed. It shows up fine on desktop and in final cut pro 7. I also unchecked the box in FCPX preferences of "copy files to final cut pro folder". Any advice is appreciated.

    Nevermind, I hooked up my other external that is formatted Mac OS Extended that is used for time machine and FCPX recognized it fine. I guess I will have to reformat the MS-DOS harddrive to Mac OS extended as well.

  • Errors in finally clause ?

    It appears that errors in a "finally" clause go completely undetected and unremarked, except that
    they change the return value to undefined
    function foo1(a) { return(a); }
    function foo2(a) { try { return(a); } finally { "no effect" ; }}
    function foo3(a) { try { return(a); } finally { b; "no effect"; }}     // "b" is a simulated typo
    function foo4(a) { try { b; return(a); } finally { "no effect"; }}     // "b" is a simulated typo
    It seems to me that foo3 ought to throw an error, or lacking that, return a.
    It does neither. It returns undefined.
    foo4 throws an error as I would expect.

    Wouldn't return force the function to exit immediately and ignore any code after it? I would suggest $.write() for the debugging and I would expect foo3 to return a as well. I will try it tomorrow, unless someone gives an explanation before.

  • Jena Driver Patch for Oracle 11.1.0.6 is missing

    I can no longer find the Jena Driver server-side patch for Oracle 11.1.0.6. I downloaded this a month ago from OTN but the link seems to have been removed. The installation guide is still available on the Jena Adaptor documentation page but I cannot locate the actual patch: jenadrv_patch111rdf.zip. Any idea what's going on?

    We are working on putting Oracle Jena Adaptor software on Metalink. After that, those links will be re-enabled on OTN.

  • Finally clause

    Hi all,
    this is a simple question but I'm not sure about the answer ....
    in finally clause, if I execute some code that could generate exceptions,
    I must (I can) put try/catch ?
    try {
    catch {
    finally {
    try {
    catch {
    Many thanks
    Moreno
    .

    You must use it if the catch blocks, prior to the finally, throw/rethrow exceptions.

  • Determining Exception in finally clause

    Is it possible to determine if an Exception has been thrown in a finally clause?
    This is in reaction to the anti-pattern log and throw.
    Bad:
    try
        someCall();
    catch (someException e)
        log(e.getMessage());
        throw someException("oops", e);
    }What I want:
    try
        someCall();
    finally
        boolean exceptionThrown = magicHere();
        if (exceptionThrown)
            // get the exception message, log the message
    }of course, this may be an anti-pattern as well.

    The 'Log and throw' antipattern just says that you should either log or throw, not both, i.e. that somebody somewhere must catch and absorb the exception, log it, and do something about it, and that that somebody should be unique. Logging it more than once doesn't add anything useful to the log and it also destroys the original stack trace. If you need to know whether an exception occurred here, the antipattern implies that you should logging it here and doing something about it here.
    But I agree that antipatterns aren't set in stone, and once you set out the underlying assumptions as above it is easy to devise counter-examples where they don't apply.

  • Can I import .MTS files from an external hard drive into Final Cut Pro X?

    Can I import .MTS files from an external hard drive into Final Cut Pro X?

    Luis Sequeira1 wrote:
    b) Use an utility like Clipwrap or MPEG Streamclip to convert the mts file to a quicktime (mov) file
    Luis,
    Just to clarify one point…in order for Streamclip to convert the MTS I believe a plug-in like the AVCCAM QuickTime importer from Panasonic needs to be installed. (Credit David McClain over at the FCS boards for that info.)
    Russ

  • Warning: finally clause cannot complete normally??

    I, I just download SDK 1.4.2 and compiled my project. I'm receiving the following warning when compiling:
    Warning: finally clause cannot complete normally??
    The method in question follows:
    public Session getJbossSession(){
    Session session = null;
    InitialContext context = getEntityFactory().getJbossContext();
         try {
         session = (Session)context.lookup("java:/Mail");
         } catch (NamingException e) {
         logger.error("NamingException while getting the Jboss Mail Session: " + e.getMessage());
         finally{
         logger.info("Session: " + session);
         return session;
    What's wrong with it? I receive the same warning for many methods where I defined a finally clause. What didn't I understand about the finally clause?
    Thanks,
    Marco     

    Sorry
    http://forum.java.sun.com/thread.jsp?forum=17&thread=42
    639&tstart=0&trange=15
    ? was droppedDoes it mean that the bug is still present?
    How could I know if they are going to fix it?
    Thanks,
    Marco

  • Copying from external drives repeatedly fails

    Hello!
    I have repeatedly had the same problem with my computer and external drives. I have 2 hard drives (150 gig Western Digital in an external USB 2.0 enclosure, and a 160 gig Maxtor in an external Firewire and USB 2.0 enclosure) from which I often cannot copy. I've never had problems writing to the drives, but sometimes copying from them freezes.
    I am a professional photographer and at any given time I'm working with far too many photos to fit on my laptop, yet I often need a particular project on my laptop so I can edit on the road. So I'm frequently moving projects to and from these drives.
    This problem is not only with photos, however. When I recently reformatted my hard drive (too many old programs installed and it was faster to just start over from scratch to clean up the drive), I first made a backup onto each of these external drives. But when I went to copy my iTunes library back onto the laptop the copying would freeze. I'd relaunch Finder and start it again and it would freeze on the exact same file. I did all the disk utility first aid operations on my laptop drive and the external drives and it still happened.
    If I connect the drive to my XP computer and transfer the files over my LAN then there's no problem. Makes me think the files are fine, as is the drive's integrity. Oh, and no problem copying these exact same files from one drive to the other, or from an external drive to the internal drive with the XP computer.
    When this problem is happening it doesn't matter which drive I use or by which interface, it always freezes on the exact same files. But if I open that file from the external drive in the appropriate application it reads it just fine. It's only when I'm copying the file. And it doesn't matter if I copy 10 gigs at once or one file at a time, the same files freeze up. If this was just one file every 6 months I could probably deal with it, maybe even just delete it and move on (as I've done with MP3s, since I own all the CDs and can re-rip the song). But when in a set of 10 gigs even if I delete one photo it freezes up again another couple hundred megabytes later.
    I'm baffled. I don't know what to do. The fact that it happens with multiple drives and multiple interfaces makes me think that it isn't a problem with the external enclosures or those drives. The only things in common are the exact files I'm transferring and the PowerBook.
    I'm really frustrated because I've found a situation where my XP box performs better than my Mac, and I'm a little shaken up about it.
    Any ideas?
    - Jon
    12 PowerBook G4 1.3GHz   Mac OS X (10.3.9)   1.25 gigs, combo drive, all updates installed except Tiger.

    Yes, it's from a camera.
    Again, the file is not corrupt. It can be read by my Windows XP computer, opened in Photoshop, and all the data is present. And if I remove the file that isn't copying and start over it freezes on another one later. And then another. And another.
    I was forced to edit this wedding on my Windows box (with an older version of Photoshop - much slower than using CS2 on my Mac) because I have been unable to copy them to my PowerBook. This is incredibly frustrating. I've run all the disk utilities on my Mac and on the external drive. Nothing has improved the situation.
    This question has not been answered. Please help!

  • How do I import video and sound files from a hard drive into Final Cut Pro X?

    I just installed the lastest upgrade to Final Cut Pro X.  I have an external hard drive connected to my computer and I want to import video and sound files into Final Cut Pro X- how do I make the transfer? 

    File>Import Files (Shift-Cmd-I). Select the files, fill out the dialog box that appears as you need.

  • Hard Drive Maintenance & Final Cut Pro

    Hello,
    I am a student running Final Cut Studio on my Mac Pro with 3 500GB Hard Drives, 2 Internal, 1 External LaCie Firewire 800. I do a lot of work with Maya and HD Editing. I am wondering if it is a good idea to have some sort of hard drive maintenance software to keep the drives working in great condition? Or does Mac OS X Tiger's disk utility do the job? If it is a good idea to have software what is a good one to use? I have heard of Disk Warrior and Drive Genius...but maybe there are better ones? Or should I not really be concerned?
    Thank you in advance for any advice!
    -Brian-

    Good advice David. I generally subscribe to the "if it aint broke, don't fix it" policy as well.
    But I have to say that since I started using DW (I run it on my system drive every 2 months and on capture drives after heavy use or accidental disconnect in the case of FW) I've virtually eliminated drive issues, from sluggishness to certain types of failure. Is it a "be all end all" app. certainly not, I've lost a few drives in my time... it's gotta happen, but it's the first app. I've found that seems worth using for regular maintenance. And as you said, the times I needed it NOW, it's more often than not, been the app that saved my butt.
    That being said my system does get heavy use. There's always something going on, often around the clock, with a lot of transferring from drive to drive, creating and deleting render files etc. So perhaps I abuse things more than some and because of that, find it more useful than some.
    rh

  • Playing Russian Roulette with Firewire 400 drives and Final Cut Pro

    oh boy! this has been a fun week!
    I would love to ask the advice of the group about checking the firwire
    ports on my computer, and also on the separate external drives.
    Here is what has been going on.
    Final Cut Pro 5 starts up and then starts to pinwheel.
    but in short here is the result, I have recently lost 2 external
    FIREWIRE 400 drives, one by LaCie that is my newest drive of the
    group, it is 160gb 2 port FW400, and another by ProMax which also has
    2 FW400 ports. the lacie was the first to go and is just not mounting
    and does not show up using any of my Disk Utility software (even the
    heavy duty stuff like DATA RESCUE II or Disk Warrior), I am thinking
    that both ports are bad(maybe fried by another bad port on my tower?)I
    can hear it when i boot it up and it sounds normal with the same
    routine sounds, but it just doesn't mount, nor show up, so is this the
    ports?fried?
    Now, on my tower I have the following setup - 2 FW400 ports that are
    STOCK that came with the TOWER G4 when I bought it. There is also a
    FIREWIRE 400 card which has 3 ports. In the past I have used all the
    ports for drives, and for a printer and a scanner in my studio.
    Everything mounted and worked properly. Then,recently I moved the
    drives and the tower to another location(in the room and no I didn't
    drop or shake anything) and replugged everything in again, probably in
    different slots but upon boot the external firewire drives didn't mount.
    I had to UN PLUG them and then RE INSERT them by trial and error(which
    I thought normal as I have done this when using these drives with my
    laptop, until I got them to mount. they all did mount. However, once
    up an running I started Final Cut Pro 5, and it started to get a
    PINWHEEL for more than reasonable and if forced me to RESTART the
    computer.
    The next time, one of the HARDDRIVES (the LaCie 160gb) was no longer
    mounting, and I tried to change firewire ports and on the stock and
    also on the card for fear that the 3rd party card might be faulty.
    I even ran APPLEs HARDWARE Utility and it gave no results as to
    anything faulty on the firewire ports. It just said they were there.
    Both stock and the PCI firewire card.
    Next, I tried to mount this LaCie 160gb onto another computer, with no
    results.....it now acts as if both ports are faulty, again, I hear the
    drive spinning and going through its initial startup, which sounds
    exactly like the other drive, but it never mounts. which is odd...what
    is your idea about this drive? and how to save it?
    is there a way to take the drive out of the casing and test it in my
    other LaCie160gb that is currently working?
    2nd, this is where it gets funky, then upon starting Final Cut Pro,
    the pinwheel reappeared now with another firewire drive a PROMAX 160gb
    that was plugged into the STOCK FW 400 port (on the tower) starting to
    show a RED light(not good), however, after restart, I didn't see the
    PROMAX drive mount, but I was able to load it up with DATA RESCUE II,
    and it is doing a QUICK SCAN to save the DATA on that disk......
    now I have backed up most of this data, but the problem now is not the
    data, it is whether or not to even plug any of my other drives into
    any of these FW ports until I can test them for faultiness.
    A friend told me of another friend having a problem where a firewire
    port was frying drives as soon as they plugged them into the certain
    port. How can you figure this out without re-acting like 'Deerhunter?'
    This feels like playing Russian Roulette......if you get my drift?
    How do you check any ports for such foul play?
    Thanks in advance for your support....
    makin

    well, now I am finding out that the culprit is I think the POWER MAC g4 itself.
    For it has been blowing the firewire ports over time by frying them with power.
    Has anyone had this happen?
    My Power Mac g4 will not shut down.
    It powers itself back up.
    I end up having to press the POWER button and holding it, but this sends power to the firewire ports and I can hear them turning on.
    so all this time I had just dealt with the issue
    Apple had seemed to blame it on a 3rd party MATROX card in the PCI slot.
    But, now that has long been taken out of the equation.
    The only thing left is that the 17inch MONITOR is plugged into the POWER MAC and for some reason it is keeping a charge?
    Can anyone help me in this matter?
    As this has haunted me for 5 years with this machine, and I have probably fried more drives than I care to mention.
    I just want my computer to SHUT DOWN when I tell it to.
    is that too much to ask?
    Might the POWER SUPPLY be at fault?
    What in God's name could keep this ******* of a computer from shutting down?
    I have no USB hubs or keyboards hookedup
    the only thing is the MONITOR itself....that you can press its button to shut down etc.
    I would be honored to know what this is as APPLE CARE never could figure it out
    I didn't want to go through the hassle of taking out the RT MAC card, and just either left the machine on, or Unplugged the thing....
    that is a nasty way to shut down a computer is it not?
    much thanks to any one who can help me to figure this out?
    thanks
    singleton

  • How to put video files on external drive for Final Cut Pro?

    Sorry for the stupid post, but I'm on day one of trying out final cut pro. (Tired of the very limiting imovie) I have a Sony HD video camera and a Go Pro HD camera. I want to store all my video on my 1TB external drive and edit from it. How do I set that up? I'm not up on the lingo that's used in the program, nor can I figure out how to do this so far.
    Thanks in advance.

    Hiya mate, first off no such thing as a stupid post. Better to ask if you're not sure!
    There are a lot of variables to think about, what codec you want to edit in, i.e. HDV, IMX, ProRes then there's frame rate, 25, 29.97 etc. Best practice is to work native to with the codec you've shot. i.e. if the camera is HDV ingest at HDV. If you want work at a higher codec, ingest or transcode to that codec then work with it in FCP. FCP works best with all assets at the on the same timebase and codec.
    You also have to think about disk speed and bandwidth from the external HD to Mac. FCP will only be able to handle 'x' amount of streams and layers depending on the codec.
    Anyways...bsck to the question at hand. Im not sure what camera you have shot in but if its HDV you easy set up to set your project to HDV/PAL/NTSC/25/29.97, then set your scratch location to the external drive, and then save your project (make sure you have named it correctly as the scratch location aka capture scratch folder, will be named with the same name as the project). Connect up the camera over firewire then go to log and capture (cmd+8) and ingest.
    Hope this helps!
    Regards,
    SJ

  • IMovie shared drive events - Final Cut Pro Issue

    I've been trying to import my imovie events into Final Cut Pro X - couple of problems so far.
    1. My events on the mounted shared drives don't get imported
    2. When I look to save new events I only have the mac HD as the save location - doesn't show the external drive
    Oddly enough on both of the above, the events show up in iMovie as events on the shared drive, and I am allowed to share new events onto the external shared drive.
    Any advice on what I can do?

    Hi - still have this issue - sorry but has anyone been able to get around this?
    Here is a smiley face for your troubles..

Maybe you are looking for

  • MAXTOR ONE TOUCH III 1TB 1000GB EXTERNAL HARD DRIVE on MacBookPr0?

    Need more Ext HD storage for iTunes on my MBPro Is anyone using a MAXTOR ONE TOUCH III 1TB 1000GB EXTERNAL HARD DRIVE this drive on MacBookPro, is it any good? Advise

  • Files on SD Card deleted when i restart phone

    Hello,  I have got major problem with SD card usage. To cut the story short, it is not usable! Nothing can be copied or moved to sd card, all files got deleted as soon as I restart the device. Curently, I am running Lollipop, but there was the same p

  • Import/Export Data Form

    Hi, i copy my production planning application (ver 9.3.1)to a new one for testing usage. I use the FormDefUtil utility to manage the DataForm. Can i recreate the folder structure that contains the data form automatically? Infact i have a lot of folde

  • IPad Mini cannot activate

    I was playing on my iPad Mini, when all the sudden it reboots. It is on iOS 7.0, and upon startup acts like it is being set up as a brand new iPad. I followed the on screen instructions, until it says  "It mat take a few minutes to activate your iPad

  • DW CS3 install

    Getting ready to install DW CS3. Will the new installation automatically pick up my sites and custom server behaviors, or do they all still have to be individually saved and then added back to the new software? Thanks.