Nothing Return via Jena Program???

Hi Folks,
I have followed the below procedures to retrieve the information via Jena. But nothing is returned. Would you please help me to solve it? The first three steps are successful, but nothing is returned when I execute any Jena's SPARQL functions to retrieve the data.
Oracle Spatial Server
1. CREATE TABLE wine_table (id NUMBER, triple SDO_RDF_TRIPLE_S);
2. EXECUTE SEM_APIS.CREATE_SEM_MODEL('*wine*', *'wine_table*', 'triple');
My Labtop
3. java example.Examples ‐testModel jdbcUrl username password model_name wine.owl RDF/XML
4. java example.Examples -testOrderBy jdbcUrl usename password wine
Please help! It is highly appreciated!
Kit

Actually, step 1 and 2 you did are not relevant to step 3 because in step 3 you chose
the name of the rdf (owl) model to be "model_name"
You can skip step 1 and 2 because Jena Adaptor will create them on your behalf.
The application table name will be automatically determined by Jena Adaptor if you are using
the simple constructor.
So I would suggest:
1) drop the wine model and application table from SQLPLUS
SQLPLUS> exec sem_apis.drop_sem_model('wine');
SQLPLUS> drop table wine_table;
2) java example.Examples ‐testModel jdbcUrl username password wine_graph wine.owl RDF/XML
3) java example.Examples -testOrderBy jdbcUrl usename password wine_graph
Cheers,
Zhe Wu (aka Alan Wu)

Similar Messages

  • Error while calling COM routines via application program (return code 40028

    Hi ,
    When i am doing these steps i am getting the following error.
    1.from SAP menu...Demand Planning>Planning>Interactive Demand planning
           2.after the transaction gets loaded...click on the 2nd button that is selection window from the left ALV menu..on the top.
            3.type the below
    show -  Material
    APO Planning Version - K01
    Material  - 12345
    4.Material 12345 will be loaded
    5.Double click and i am getting  ''error Error while calling COM routines via application program (return code 40028)''
    Note : Observed that this is not happening everytime, but happening alternatively.
    Can any one say what is the problem for Error.
    Thanks
    Gerard

    Hello Gerard, Hello Krishna,
    -> The liveCache application failed with COM error::
                                   40028 Illegal timestamp in rough timegrid
    More details about COM error 40028 you will see in TA /n/sapapo/om10
         -> Return code: 40028 -> execute ::
    Invalid time stamp in the time buckets profile relation     
    ( om_ts_tgrelinvalidstamp )     
       < click on '?' mark >
    -> Open an OSS message in accordance with SAP note 167280 if further help
         needed to solve the issue on your system.
    Thank you and best regards, Natalia Khlopina

  • I have Adobe Photoshop Album 1.0 & suddenly cannot send photos thru e-mail.  It looks like it's working ok; but when I hit Send nothing happens and the program stops responding.  Any suggestions?

    I have Adobe Photoshop Album 1.0 & suddenly cannot send photos thru e-mail.  It looks like it's working ok; but when I hit Send nothing happens and the program stops responding.  Any suggestions?

    I have starter 3.0 and cannot share pictures via outlook express. Evidently that version is discontinued and my outlook express does not support the MAPI that is required. I think the only solution is to upgrade to photoshop
    elements or to send photos as attachment to your e-mail.  I have the same problem using Zoom Browser EX sending photos via internet. I spent a whole day trying to resove this issue and have exhausted all options. Just like "Instant share" in HP image Zone that was replace by photoshop album starter 3.0 and now it is out dated.

  • PREFIX ORACLE_SEM_FS_NS timeout via Jena Adapter

    Hi,
    I am executing SPARQL via Jena Adapter and would like to specify timeout.
    I use PREFIX ORACLE_SEM_FS_NS: <http://oracle.com/semtech#timeout=5> , according the the sem dev guide Jena examples, but the timeout value has no effect at all.
    For some heavy queries QueryExecution->execSelect() never returns
    I found this thread - Re: Query IDs in ORACLE_SEM_FS_NS : 32 or 64 bits? , which discuss the similar subject. I tried to add qid to the prefix, but that did not help. I don't use Joseki endpoint nor OracleQueryMgtServlet to manage(kill) long queries. Maybe I will provide the latter function in the future, but I would like to start with that users specify the timeout and query would interrupt itself if not ready.
    So, is there anything else I have to do in Java/Jena code or somewhere else?
    Thanks, best regards
    Jürgen
    After some more testing it turns that the problem with timeout is related to certain type of queries only. Normally the timeout works.
    But when LET statement is used in some way, then timeout does not occur and it seems the query simply hangs:
    This query works and times out (if timeout value is set short enough):
    SELECT DISTINCT
    ?HR_Zone
    (count(?e) AS ?major_count)
    WHERE {
    ?e rdf:type r:ST_Episode .
    OPTIONAL
    ?e r:isClassifiedAs rn:major_st_episode .
    OPTIONAL{
    ?e r:mappedHRZone ?zone .
    ?zone r:index ?HR_Zone
    GROUP BY ?HR_Zone
    This query does not finsih (in boundaries of my patients) and does not time out:
    SELECT DISTINCT
    ?HR_Zone
    (count(?e) AS ?major_count)
    WHERE {
    ?e rdf:type r:ST_Episode .
    OPTIONAL
    ?e r:isClassifiedAs rn:major_st_episode .
    LET( ?emajor := ?e )
    OPTIONAL{
    ?e r:mappedHRZone ?zone .
    ?zone r:index ?HR_Zone
    GROUP BY ?HR_Zone
    However, one might think that LET is not supported - but without ARQ functions it works. This query works and times out (with short timeout value)
    SELECT DISTINCT
    ?emajor ?HR_Zone
    WHERE {
    ?e rdf:type r:ST_Episode .
    OPTIONAL
    ?e r:isClassifiedAs rn:major_st_episode .
    LET( ?emajor := ?e )
    OPTIONAL{
    ?e r:mappedHRZone ?zone .
    ?zone r:index ?HR_Zone
    Edited by: user8793616 on 2010-sep-29 04:51

    Hi Jurgen,
    The timeout pragma is most effective when used with SPARQL 1.0 queries, since they are supported natively. Once you start using ARQ features - which are not available in Oracle so they are processed in the mid-tier - timeout becomes less reliable.
    Cheers,
    Vladimir

  • I have an issue with the Recycle Bin. It does not respond if I click on the Icon. I have to empty the bin via another programve an issue with the Recycle Bin. It does not respond if I click on the Icon. I have to empty the bin via another program

    I have an issue with the Recycle Bin. It does not respond if I click on the Icon. I have to empty the bin via another program

    "CCleaner" is a scam and it may well have corrupted the operating the system. Get rid of it according to the developer's instructions, then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon, usually with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.10 ("Yosemite"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • How to extract data from BPC InfoCube via ABAP program?

    Hi experts!!
    I tried to extract data from a BPC InfoCube via ABAP program, but I did'n have succeed.
    I used the function 'RSDRI_INFOPROV_READ' to extract data from standard InfoCubes such as '0COPC_C07' and it run OK! However, when I change the InfoCube name to '/CPMB/WAIX8NE' (BPC InfoCube), everything goes wrong...
    Is there any difference between extracting data from BPC and standard InfoCubes?
    Thank you all!

    Moderator message - Welcome to SCN.
    But please do not cross and duplicate post.
    Thread locked.
    Rob

  • MATMAS01 IDOC not reaching to SAP XI via report program.

    Dear Experts,
    WE are facing small challenge.
    I searched on SDN on scenarios: IDOC not reaching to SAP XI. But could not find exact solution t oour scenario.
    Problem:
    MATMAS01 IDOC is not reaching to SAP XI via report program and is in status of 03 on SAP system. And there are not entries under SM58.
    Under SAP XI system IDOC entry is not reflecting under IDX5 transaction, I tried to delete meta data of MATMAS01 thru IDX1 and uploaded again but still IDOC is not reaching to SAP XI.
    The strange is that MATMS01 IDOC is reaching to XI via WE19 test tool. So PORT and RFC destination settings betweeen R3 and XI is also correct.
    What could be the wrong ?
    Thanks
    Divyesh

    When sending Idoc from R/3,
    Settings at R/3
    create one port at WE21,
    Create Partner Profile for Outbound Message type in WE20.
    settings at XI
    Create one port in IDX1
    Import Matadata in IDX2.
    Create complete scenario in ESR for Idoc sender, also import IDoc in Imported Objects.
    Check these settings & send test idoc using WE19.

  • I have bought Canon EOS 70 D and have Photoshop Elements 12. The program has RAW 8.0. I need 8.2. I have tryed help - update and it is searching hour after hour. Nothing happens. The program i  brand new, Installed yesterday

    I have bought Canon EOS 70 D and have Photoshop Elements 12. I need RAw 8.2 and the program has 8.0.
    I have tryed help - update and it is searching for hours. Nothing happens. The program is installed yesterday.

    Are you updating from the Editor, if not go to Expert Mode and click:
    Help >> Updates
    But check first under the Help menu that you are signed-in - your email address used for you Adobe ID should be visible. You should be able to update to v8.5

  • Vendor return via delvery

    Hi all
    I have activated vendor return via delivery:
    MIGO referred to the original good receipt, movemement 122 and delivery type RLL.
    After that I need to create CREDIT MEMO.
    When I go in MIRO and select credit memo referred to the purchase order, I don't have the quantity returned but all the quantity receipt... why I haven't only the returned pne?
    if i change manually it works but usually should appear in credit memo only the returned.
    please suggest if something is wrong
    br

    Yes  .  We  have   to  change  the  quantity  and  value   manually   when   we   are  doing credit Memo  Because  System  will  show   for  10  qty  ,  we  have     to  change    for  3  qty  and   the  value  for  3  Qty .
    Its  a    standard behavior in  .SAP

  • Selecting (and resizing, for example) a layer under the top layer via the Program Monitor

    Hello all.
    Using CS5
    I am in the timeline and have selected layer 1 which is a video layer
    Layer 2 is a title layer.
    I want to manually resize layer 1, via the Program Monitor.
    But when I go to the Program Monitor and select it Layer 2 (the title layer) becomes selected, preventing me from selecting and manually resizing/repositioning Layer 1.
    The above example is a simplified version of what I usually find myself doing.  Usually I have many layers above a layer that I want to resize or reposition (or do something else) but when I try to resize or repositon via the program monitor I am only able to manipulate the top layer.
    Any suggestions, other than locking every layer other than what I want to resize etc .?
    Thanks
    Rowby

    Hi Bill,
    No they are separate orginal tracks. 
    Is there a way to "select" a layer below the top layer via the Progam Monitor -- and perform modifications on that lower level -- such a manually resizing on the Program Monitor.  I find if I want to do it via the Program  Monitor I have to temporarily lock the top layer.
    And if I have lots of layers above the layer I want to manually resize, I have to lock all of the layers above that layer so I don't start moving around (for example a title layer which might be the top layer of the sequence) in order to manually resize via the Program Monitor.
    I know (for example) in the case of scaling or repositioning a layer I could do it via the effects control panel, but I often want to do it via the Program Monitor.
    Rowby

  • How to create batch job via a program

    hi
    i need to know how to create batch job via a program please suggest
    arora

    Wow!
    > Total Questions:  234 (138 unresolved) 
    ...and now you ask this?
    Please accept our apologies for not pointing out to you way-back-when already that there is a search functionality here at SDN and that the correct forum should be used to post questions to.
    Please read "the rules" at the top of the forum page, and search first => ask questions later.
    I take the liberty of closing your question for you.
    Kind regards,
    Julius

  • Send a mail via ABAP program

    Hello Experts,
    I want to send mail via ABAP program with the following requirements :
    1. Recipient is OUTLOOK email -id
    2. Sender address has to be an external email-id
    3. Send mail as CC and BCC also to other email-id.
    Is there any function module which can satisfy all the above requirements.
    Regards,
    Mansi.

    hi,
    this code will definately help you just go through it:
    firstly  exported the data to memory using the FM LIST_FROM_MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = t_listobject
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE e000(su) WITH text-001.
    ENDIF.
    then i converted it into ASCII using LIST_TO_ASCI,
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listasci = t_xlstab
    listobject = t_listobject
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc NE 0.
    MESSAGE e003(yuksdbfzs).
    ENDIF.
    This gives the data in ASCII format separated by '|' and the header has '-', dashes. If you use this internal table directly without any proccesing in SO_NEW_DOCUMENT_ATT_SEND_API1, then you will not get a good excel sheet attachment. To overcome this limitation, i used cl_abap_char_utilities=>newline and cl_abap_char_utilities=>horizontal_tab to add horizontal and vertical tabs to the internal table, replacing all occurences of '|' with
    cl_abap_char_utilities=>horizontal_tab.
    Set the doc_type as 'XLS', create the body and header using the packing_list and pass the data to be downloaded to SO_NEW_DOCUMENT_ATT_SEND_API1 as contents_bin.
    This will create an excel attachment.
    Sample code for formatting the data for the attachment in excel format.
    u2022     Format the data for excel file download
    LOOP AT t_xlstab INTO wa_xlstab .
    DESCRIBE TABLE t_xlstab LINES lw_cnt.
    CLEAR lw_sytabix.
    lw_sytabix = sy-tabix.
    u2022     If not new line then replace '|' by tabs
    IF NOT wa_xlstab EQ cl_abap_char_utilities=>newline.
    REPLACE ALL OCCURRENCES OF '|' IN wa_xlstab
    WITH cl_abap_char_utilities=>horizontal_tab.
    MODIFY t_xlstab FROM wa_xlstab .
    CLEAR wa_xlstab.
    wa_xlstab = cl_abap_char_utilities=>newline.
    IF lw_cnt NE 0 .
    lw_sytabix = lw_sytabix + 1.
    u2022     Insert new line for the excel data
    INSERT wa_xlstab INTO t_xlstab INDEX lw_sytabix.
    lw_cnt = lw_cnt - 1.
    ENDIF.
    CLEAR wa_xlstab.
    ENDIF.
    ENDLOOP.
    Sample code for creating attachment and sending mail:
    FORM send_mail .
    u2022     Define the attachment format
    lw_doc_type = 'XLS'.
    u2022     Create the document which is to be sent
    lwa_doc_chng-obj_name = 'List'.
    lwa_doc_chng-obj_descr = w_subject. "Subject
    lwa_doc_chng-obj_langu = sy-langu.
    u2022     Fill the document data and get size of message
    LOOP AT t_message.
    lt_objtxt = t_message-line.
    APPEND lt_objtxt.
    ENDLOOP.
    DESCRIBE TABLE lt_objtxt LINES lw_tab_lines.
    IF lw_tab_lines GT 0.
    READ TABLE lt_objtxt INDEX lw_tab_lines.
    lwa_doc_chng-doc_size = ( lw_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
    lwa_doc_chng-obj_langu = sy-langu.
    lwa_doc_chng-sensitivty = 'F'.
    ELSE.
    lwa_doc_chng-doc_size = 0.
    ENDIF.
    u2022     Fill Packing List For the body of e-mail
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = 'RAW'.
    APPEND lt_packing_list.
    u2022     Create the attachment (the list itself)
    DESCRIBE TABLE t_xlstab LINES lw_tab_lines.
    u2022     Fill the fields of the packing_list for creating the attachment:
    lt_packing_list-transf_bin = 'X'.
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = lw_doc_type.
    lt_packing_list-obj_name = 'Attach'.
    lt_packing_list-obj_descr = w_docdesc.
    lt_packing_list-doc_size = lw_tab_lines * 255.
    APPEND lt_packing_list.
    u2022     Fill the mail recipient list
    lt_reclist-rec_type = 'U'.
    LOOP AT t_recipient_list.
    lt_reclist-receiver = t_recipient_list-address.
    APPEND lt_reclist.
    ENDLOOP.
    u2022     Finally send E-Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = lw_sent_to_all
    TABLES
    packing_list = lt_packing_list
    object_header = lt_objhead
    contents_bin = t_xlstab
    contents_txt = lt_objtxt
    receivers = lt_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    Hope it will help you
    regards
    Rahul sharma

  • IDOC Via Reprot program ( conversion)

    Dear All,
    I have to develop a conversion through IDOC Via Reprot program
    Can any one please give a little idea how to do this.
    Cheers,
    Raadha.

    Reviving an old thread...
    I'm getting a similar error making RFC calls from a stand-alone program to an ABAP server using JCo:
    RFC_GET4, GET_ID-3c05 LINE 990
    Any ideas?
    Thanks.
    Tim

  • Hi i use adobe reader for SARS efiling through firefox and SARS says not compatible with Firefox to open adbobe reader and file my Tax returns via SARS website

    I,m having problems trying to file my SARS tax returns via SARS efiling on their website sarsefiling.co.za .They use adobe reader to open their documents ie EMP201 PAYE and EMP501 VAT returns
    it won,t open the document in order for me to capture the company information on their website . I have mozzilla firefox as my protection for sites and emails I go through mozzilla to open adobe documents /attachments . it seems with SARS website doesn,t like this .So how do i go around trying to do my job at work . Thanks linda Desperate now ...........

    I think I found a Windows setting that is causing the issue. I'm using
    my LCD HDTV as the monitor for this computer, and in order to see the display easily, I have the following setting in Windows 7: Control Panel > Appearance and Personalization > Display > Make text and other items larger or smaller > 150%.
    When I change this to the default of 100%, the problems with Reader X in Firefox and IE disappear. Reader 9, however, works perfectly at 100% and 150%.
    Is this a known bug in Reader X? Since the problem only appeared when moving from Reader 9 to Reader X, it seems it's not an unsolveable incompatability or something that's too difficult to work around.
    Do any others with their displays magnified have this problem? Or does it work perfectly? Would anyone (preferably with Windows 7 64-bit) be willing to set their display magnification to 150% and see if they can replicate the problem?

  • Copy data when creating GR return via delivery

    Dear all:
    Is there any ways that I can copy header text (MKPF-BKTXT) to header data of delivery note? (LIKP-LIFEX)
    This happens when I create return delivery in MIGO and tick "via delivery" in header.
    System will automatically create a delivery note when I save this transaction.
    I want to copy some information to delivery note. Other header field except LIKP-LIFEX is OK, too.
    Please advise. Thanks.

    This is solved by Enhancement when creating GR return via delivery
    I don't know how to delete my thread, so I just close it by myself.....

Maybe you are looking for

  • Back up contacts from Samsung Reality to Droid 2X

    I went on backup assistant and kept getting Flash errors. I have a Samsung Reality and I am upgrading to a Droid 2x in the next day or so. I wanted to back up my contacts but the FAQ on that subject don't seem to apply to me or the SR - (downloading

  • Issue Retro Payroll with currency

    Dear all! I have problem, i try to find out the reason but not succeed. I am using Payroll Schema running for employee in India, of course currency is INR. However I hired 1 employee with currency as USD. The rate 1 USD = 46 INR. Decimal of INR is 3

  • Is it possible to access getRequestBean1 from a component in page fragment?

    Hi, Assume I have two pages, the first page has a button (say button1) among other components; the second page contains a page fragment which has a button (say button2) in it. In the button1 action, I set the value for a property (say X) which has re

  • Using bullets in forms central

    How do you insert a bullet or bullets on the online forms?  I am not seeing how to insert it on an online registration form I am trying to create.  Thanks for any help!

  • How to use position dynamically as a agent

    can any one help me in finding how to pass the position to the container from the business object. i have actually copied BUS2013 and want to pass the position from the BOR to WF container. what should be the type of the container and should the agen