How to use levels in RDF Data Model?

I am working on RDF model, i am able to retrieve the queries base on subject or object....
i want to retrieve the data based on level. i could not get the query for that.
would you please advice me regarding solving this issue.
Thanks in Advance
Kamraj

Thanks for your response.
We are using Oracle Spatial RDF (Resource Description Framework).
We are able to retrieve the query based on Subject, Predicate and Object.
SELECT X,Y,Z
FROM TABLE(SDO_RDF_MATCH(
'(?X ?Y ?Z)',
SDO_RDF_MODELS('TESTDATASET'),
NULL,
SDO_RDF_ALIASES(SDO_RDF_ALIAS('',':')),
NULL))
WHERE( Y=':INDIRECT'OR O R Y=':DIRECT')
ORDER BY Y
We want to retrieve the triple (Subject, Predicate and Object) up to some level.
SELECT X,Y,Z
FROM TABLE(SDO_RDF_MATCH(
'(?X ?Y ?Z)',
SDO_RDF_MODELS('TESTDATASET'),
NULL,
SDO_RDF_ALIASES(SDO_RDF_ALIAS('',':')),
NULL))
WHERE( Y=':INDIRECT'OR O R Y=':DIRECT')
< level =5> -- want proper query to get the level
ORDER BY Y
Would you please help us to get the level based triples?.

Similar Messages

  • How to use NetworkConstraint in Network Data Model?

    e.g. In a transportation application, you may drive from Node1 to Node2 along Link12, and from Node2 to Node4 along Link24, but you can not 'turn-left' from Link12 to Link24, how to restrict this in Oracle Spatial Network Data Model?
    Is there any examples?
    Thanks a lot.

    The only way I know to do it, is to have a more complex node model. Instead of a simple node joining links 12 and 24, you need several at that point that link the streets. For example, with a standard four-way intersection, each end of the streets would have a node (warning CRUDE drawing):
    ..A
    B.+.C
    ..D
    Links between those nodes could have directional restrictions, or not even exist at all between any two. So, you could set it up such that From D to A and B to C you can go either way. For right turns, D to C, C to A, A to B, and B to D are directional. For left turns, C to D, A to C, and B to A are directional, with no D to B link existing.
    Hope that makes sense.

  • Converting .rdf data model to xml output thru conc program

    Dear Members :
    I am trying to convert .rdf data model(Reports 10g) into XML tag, by creating Concurrent Program Report Definition, setting output type as XML.But when running the CP, getting following error:
    XML Parsing Error: XML declaration not well-formed
    Location: http://oel4.localdomain:8000/OA_CGI/FNDWRR.exe?temp_id=2393533895
    Line Number 1, Column 31:<?xml version="1.0" encoding="&Encoding"?>
    All I want is save output in Oracle Apps (11i) as .XML to be used later for XML publisher, in MS Word. The above procedure should have worked fine, as seen, in other posts.
    Any clue, please ?
    Thanks in advance.
    Atanu
    =================================================
    It's solved by changing xml prolog value to <?xml version="1.0"?>. This is closed issue - thanks.
    Edited by: user11184124 on Sep 19, 2010 11:29 AM

    OK, figured it out... when you double click on the field to add the ../, you actually need to click on Add Help Text and add the ../ here

  • Hello !  pls give some ti[ps how to use bapi's for data uploading?

    hello !
      pls give some ti[ps how to use bapi's for data uploading?
    regards,
    Arjun

    Hi,
    See the below report extract:
    where it_data is having uploaded data.
    LOOP AT<b> it_data</b> INTO wa_data.
        line_count = sy-tabix.
        "Date Validation
        CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
        INTO wa_data-uplft_date.
        "READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
        LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
          IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
            MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
            APPEND wa_ekko TO it_ekko.
          ENDIF.
        ENDLOOP.
        "IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
        LOOP AT it_ekko INTO wa_ekko.
          wa_data_header-pstng_date = wa_data-uplft_date.
          wa_data_header-doc_date = sy-datum.
          wa_data_header-bill_of_lading = wa_data-bill_of_lad.
          wa_data_header-ref_doc_no = wa_data-del_no.
          CONCATENATE wa_data-header_text1 '-'
                      wa_data-header_text2 '-'
                      wa_data-header_text3 '-'
                      wa_data-header_text4
                      into wa_data_header-HEADER_TXT.
          IF wa_data-indicator = 'Y'.
            wa_data_item-material = '000000000000200568'.
          ELSE.
            wa_data_item-material = '000000000000200566'.
          ENDIF.
          LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
            "Collect Item Level Data
            wa_data_item-plant = '1000'.
            wa_data_item-stge_loc = '1001'.
            wa_data_item-move_type = '101'.
            wa_data_item-vendor = wa_data-vendor.
            wa_data-qnty = wa_data-qnty / 1000.
            wa_data_item-entry_qnt = wa_data-qnty.
            wa_data_item-po_pr_qnt = wa_data-qnty.
            wa_data_item-entry_uom = 'KL'.
            wa_data_item-entry_uom_iso = 'KL'.
            wa_data_item-orderpr_un = 'KL'.
            wa_data_item-orderpr_un_iso = 'KL'.
            wa_data_item-no_more_gr = 'X'.
            wa_data_item-po_number = wa_ekpo-ebeln.
            wa_data_item-po_item = wa_ekpo-ebelp.
            wa_data_item-unload_pt = wa_data-unload_pt.
            wa_data_item-mvt_ind = 'B'.
            APPEND wa_data_item TO it_data_item.
            CLEAR wa_data_item.
          ENDLOOP.
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header = wa_data_header
              goodsmvt_code   = goodsmvt_code
              testrun         = 'X'
            TABLES
              goodsmvt_item   = it_data_item
              return          = return.
          READ TABLE return INTO wa_return WITH KEY type = 'S'.
          IF sy-subrc <> 0.
            DESCRIBE TABLE return LINES sy-tfill.
            IF sy-tfill = 0.
              CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>   
            EXPORTING
                  goodsmvt_header = wa_data_header
                  goodsmvt_code   = goodsmvt_code
                  testrun         = ' '
                TABLES
                  goodsmvt_item   = it_data_item
                  return          = return.
              CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
               EXPORTING
                 WAIT          = 'X'
              IMPORTING
                RETURN        =
            ENDIF.
          ENDIF.
          LOOP AT return INTO wa_return.
            WRITE: 'Messsage TYPE  ', wa_return-type,
                  /,'ID  ', wa_return-id,
                  /, 'Number  ', wa_return-number,
                  /, 'Message  ', wa_return-message,
                  /, 'Long Text  ', wa_return-message_v1,
                                    wa_return-message_v2,
                                    wa_return-message_v3,
                                    wa_return-message_v4,
                 /, 'Failed at line', line_count.
          ENDLOOP.
          CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
        ENDLOOP.
    Reward if useful!

  • How to attach jkm for a data model?

    please suggest me.....
    i want to use journalizing for a data model so i need to give jkm for that how can i give jkm in the journalizing tab of that particular model

    Hi,
    You need to import the JKM into your project .
    Then goto your model --->journalizing tab and select your JKM imported in the project .
    Thanks,
    Sutirtha

  • How to make linkage query In Data Model for search

    I want to make an linkage query as a condition for my  report in BI Publisher. how to make the linkage in Date Model ?

    This is the forum for SQL Developer, not for general SQL or PL/SQL questions.
    Please repost this in the SQL and PL/SQL forum.

  • How to use TRUNC function with dates in Expression Builder in OBIEE.

    Hi There,
    How to use TRUNC function with dates in Expression Builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
    Thanks in advance

    use this instead:
    TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE)

  • How to use clob or blob data type in OWB

    how to use clob or blob data type in OWB?
    if OWB not surport these data type,how can i extract the large data type from data source

    The same question was asked just two days ago No Data Found: ORA-22992
    Nikolai Rochnik

  • How  to maintain version in ERwin Data Modeler

    Hi all
    Please tell me
    how to maintain version in ERwin Data Modeler
    regards

    In SharePoint, navigate to the form library, and then click Library Tools > Library > Settings > Library Settings.
    On the Form Library Settings page under General Settings, click
    Versioning settings.
    On the Versioning Settings page under the Document Version History section, select either the
    Create major versions option or the Create major and minor (draft) versions option, and click
    OK.
    http://www.bizsupportonline.net/blog/2012/10/version-control-infopath-forms-templates-sharepoint-libraries/
     Or
    plan this wsp nfoPath_VersionHistory.wsp
    http://infopathversioning.codeplex.com/

  • How to use Reference type of Data Element

    Hi guys, is there anyone could give me a trace how to use reference type of data element.
    More details i'm going to reach is:
    I create 2 tables:
    eq.
    1. table ZFIRST has field X with data element ZFX (Data element i declared).
    2. table ZSECOND has field Y.
    Here at field Y (second table) I'm going to declare a new data element say it ZFY, but in ZFY I'm going to use the data element as i declared before (ZFX). Is it possible if I do it using reference type data element (SE11)?
    I already did this way, but I got error :
    Field Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
    What does it mean?. Did I miss something about using reference data element type?.
    This error occurs when I activate ZSECOND table. However in creating ZFY (reference) to data element ZFX, there is no error occur.
    The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
    Any helpful will be highly appreciated.
    Thanks.
    Edited by: dinivian dondi on Nov 4, 2010 8:30 AM

    Field Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
    What does it mean?. Did I miss something about using reference data element type?.
    Apparently system doesn't allow you to type a transparent table field with deep type. This refers to references and tables types as components. The RDBMS (Relational DB Management System) cannot interpret this componenets correclty and mapp them to TABLEs in DB.
    So I am affraid you won't be able to type table component with reference to other data element.
    The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
    Sorry but I don't get it, could you please explain this more clearly. Maybe then we can think of some workaround for you.
    Regards
    Marcin

  • How to use ADO(Microsoft ActiveX Data Objective 2.8 Library) to execute the store procedure of database in SQL server

    how to use ADO(Microsoft ActiveX Data Objective 2.8 Library) to execute the store procedure of database in SQL server?
    Does any body can tell me about this?
    thanks
    [email protected]

    Hi 
    Did you succeed to execute the procedure?
    How ?
    Thanks
    Shimon Zerbib

  • How to make use of a different data model for a line chart?

    I have a datamodel which is a sql query. I have a line chart on my template which is using some "Start Time" field as X-Axis. There is a chance that "Start Time" is null. In such cases the plotted point doesn't appear with x-coordinate. But I can't change the X_Axis field to some other not-null attribute due to business requirement.
    I am thinking to create another datamodel which filters all "Start Time"s which are nulls and use that datamodel for the line chart that has "Start Time" as X-axis. But I don't know how to do this as whenever I try to insert a line chart from BIPublisher menu in MS_Word, I am not prompted to select the datamodel.
    Can anybody tell me what I am trying is possible? If so how? If not, how do I have "Start Time" as X-axis without hassles?
    Thanks,
    -Vijay-

    Are you able to extract the data based on the new data model in an XML file? If so, in BI publisher desktop, are you able to load the XML data via Add-Ins ->Data -> Load XML Data?
    If you have been able to load the data successfully, then you need to Select Chart from the Insert Menu. When you do that, you should be able to see the Data layout on the left side of the chart dialog box. Then you should be able to drag and drop fields as necessary to create the chart. Are you having issues doing this part?
    You will not be prompted to select the data model. Hope I haven't misunderstood your question.
    Thanks!

  • How to do outer join in data model view?

    Hi,
    I have 2 queries are needed to be joined in Oracle Report 6i Data Model View. What I want to do is below:
    where table1.receipt_no(+)=table2.receipt_no
    How do I use the 'Data Link' to do this in Data Model view?
    Thanks.
    Jun

    Hi
    You need to use data links. Refer data link section in BUilding Reports manual at http://otn.oracle.com/products/reports/htdocs/getstart/docs/B10310_01/orbr_concepts1.htm#1013156.
    Thanks
    Rohit

  • Oracle Spatial RDF data model and database edition

    Hi: Can some one please let me know the Oracle edition that support the RDF data mdoel.
    According to my understaning it is Oracle 10g Enterprsie edition, with the Spatial option. If this is true; is installing the enterprise edition will already give me the Spatial option? or do I have to isntall the Spatial data model as a seperate module. Besides this is installing the Spatial data model already give the RDF capability, or again RDF is a sepeare module that need to be installed seperately?
    Thanks in advance
    Regards,
    Rashid.

    Hi Axel,
    You could use the download of Oracle 10g available on OTN at http://www.oracle.com/technology/tech/semantic_technologies/index.html. This can be used free for development, but not for deployment. As long as you use it just for development during your thesis and do not deploy it in a production environment it should be OK to use the free download.
    Along with the free download we recommend also using the patch (RDF specific patch for 10.2.0.1 database) that is available by clicking on 'software' on the same page.
    Melli

  • How to use sqlldr for loading data in Oracle 10g xe.

    I want to load data using SQL*LOADER in Oracle DB from a .csv file but it doesn't seems to be working can anyony please help me.I am not get getting how to use sqlldr.
    in CMD in giving this command
    sqlldr hr/hr control='c:/data/record.ctr'
    record.ctr>>load data
    infile 'c:\data\record.csv'
              into table record
    fields terminated by "," optionally enclosed by '"'          
    ( Name,uday, hemant )
    sql table in data base>>CREATE TABLE "RECORD"
    (     "NAME" VARCHAR2(50),
         "UDAY" VARCHAR2(50),
         "HEMANT" VARCHAR2(50)
    record.csv>>name,uday,hemant
    c1,45454,84894
    c2,489654,21322
    can you please tell me how can i get this simple example run.

    C:\>sqlldr scott/tiger
    control = data.ctl
    SQL*Loader: Release 10.1.0.2.0 - Production on Thu Sep 14 17:06:46 2006
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Commit point reached - logical record count 3
    SQL> conn scott/tiger
    Connected.
    SQL> create table data (col1 varchar2(40),col2 varchar2(40),col3 varchar2(40));
    Table created.
    SQL> select * from data;
    COL1                 COL2                 COL3
    name                 uday                 hemant
    c1                   45454                84894
    c2                   489654               21322
    SQL>
    data.csv
    name,uday,hemant
    c1,45454,84894
    c2,489654,21322data.ctl
    load data
    infile 'c:\data.csv'
    append
    into table data
    fields terminated by ','
    optionally enclosed by '"'
    (col1,col2,col3)i hope it will solve ur problem

Maybe you are looking for