HOW TO DELETE PARTICULAR TRIPLE SET FROM Oracle SEMANTIC TABLES in 11g

Can somebody help us how to delete a particular set of triples from Oracle(11g) semantic that we have. Because we noticed that few triple belongs to particular data sets were wrongly loaded so we need to remove only those triples.
Usually we delete all triples including others such and reload them again along with new triples. We would like to avoid this as we go to production.
Otherwise When we insert a set of triples belongs to a particular data set, is it possible to know what ids Oracle assigned to that set? Can we delete by id? Just a thought.
Rgds
Srini

Hi,
It is very strange. I got an email in my inbox saying that you want to find out
IDs of triples that belong to RNAIDB data set like the following.
"<http://www.lscdd.lilly.com.sg/lscdd/RNAIDB/...../.../:>".
This forum does not have your message somehow.
Assume you have asked such an question :), my answers are
1) from a modeling perspective, it is not a very good idea to encode
semantics in the URI lexical form itself. A URI should be treated
as a symbol.
2) now assume you have a valid reason for doing this, you can try something like the following.
CREATE INDEX testdel_sub_idx ON tstdel (triple.GET_SUBJECT());
-- You can then get the rowid out for those offending rows.
select rowid
from tstdel t
where t.triple.GET_SUBJECT() like '<urn:su%'
-- Or you can remove them directly.
delete from tstdel t
where t.triple.GET_SUBJECT() like '<urn:su%'
;

Similar Messages

  • How to delete the matching records from two internal tables

    Hi ,
    I have two internal tables say A and B of the same type. If A has 10 records and B has 4 records , I want to delete the 4 records in B from A .
    loop at B into wa .
    delete A where key = wa - key .
    endloop.
    takes a long time if the table B is huge. how can I improve the performance.
    Thanks.
    Gayathri

    Hi Gayathri,
    You could try field-symbols. It reduces the data transfer from the internal table B to the work area.
    field-symbols <fs_itab_b> like line of B.
    loop at B assigning <fs_itab_b>.
      delete A where key = <fs_itab_b>?-key.
    endloop.
    Regards,
    <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=zwcc%2fwm4ups%3d">anand Mandalika</a>.

  • How to delete all artifacts harvested in Oracle Enterprise Repository Repository 11G

    Is there any way where in I can delete all the harvested artifacts in oracle enterprise repository?
    I could not find any option to delete in bulk in the OER console.

    When I run the script below on the same database to identify the job it does not show the scheduled job
    select job_id, job_name, job_owner from mgmt_job
    where job_name like '%BACKUP_EMS%';
    However in OEM under yesterdays date it shows
    Key Tag Completion Time Contents Device Type Status Keep Pieces
    15 TAG20110830T191924 30-Aug-2011 19:19:26 SPFILE, CONTROLFILE DISK AVAILABLE NO 1
    14 BACKUP_EMS_000021_083011070002 30-Aug-2011 19:19:18 DATAFILE DISK AVAILABLE NO 1
    Where is this job running from as I can't find it?

  • How to delete archive log files from ASM through Grid Control

    Hi
    Anybody suggest me how to delete archive log files from ASM through Grid Control.
    Thanks

    It is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
    In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • How to delete string or line from unix file(dataset) of application server

    Hi  All,
    After transfer workarea information or all records into dataset(unix file). When I see the file in application server automatically the last line is shown a blank line. I am not passing any blank line.
    I have tried for single record than also the file generates the last line(2nd line) also a blank line.
    When I m reading the dataset, it is not reading the last blank line but why it is showing the last blank line?
    How to delete string or line from unix file(dataset) of application server?
    Please give your comments to resolve this.
    Thanks
    Tirumula Rao Chinni

    Hi Rio,
    I faced similar kind of issue working with files on UNIX platform.
    The line is a line feed to remove it use
    DATA : lv_carr_linefd TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf. 
      DATA : lv_carr_return TYPE char1,                                   
             lv_line_feed   TYPE char1.                                          
      lv_line_feed   = lv_carr_linefd(1).
      lv_carr_return = lv_carr_linefd+1(1).
    Note: IMP: The character in ' ' is not space but is a special
    character set by pressing ALT and +255 simultaneosly
      REPLACE ALL OCCURRENCES OF lv_line_feed IN l_string WITH ' '.
      REPLACE ALL OCCURRENCES OF lv_carr_return IN l_string WITH ' '.

  • How to delete a single request from DSO in BI 7.0

    Dear Experts,
    Could you please tell me how to delete a single request from DSO?
    I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
    Please suggest me this issue.
    Regards,
    Prathap

    IN DSO--its a very basic thing....
    ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
    So ,each new request has a realationsip with the older request.
    So in the cases:
    1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
    e.g older request  entries:
    a x 1
    new request
    a x 2
    change log
    a x 1
    a x -1
    a x 2
    so its quite obvious you can't have  a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
    2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
    I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
    thats request reverst posting
    IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
    regards,
    rk

  • How to delete the duplicate data  from PSA Table

    Dear All,
    How to delete the duplicate data  from PSA Table, I have the purchase cube and I am getting the data from Item data source.
    In PSA table, I found the some cancellation records for that particular records quantity  would be negative for the same record value would be positive.
    Due to this reason the quantity is updated to target but the values would summarized and got  the summarized value  of all normal and cancellation .
    Please let me know the solution how to delete the data while updating to the target.
    Thanks
    Regards,
    Sai

    Hi,
    in deleting the records in PSA table difficult and how many you will the delete.
    you can achieve the different ways.
    1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
    2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
    3.you can restrict the cancellation records at query level.
    Thanks,
    Phani.

  • How to delete a management agent from grid control completely?

    I have installed oem grid control 10.2.0.4.0 on single host(oemlinux.oracle.com), and I removed agent10g, and reinstall a new management agent into a new location, but when I wanted to add a weblogic server to monitor, I got error as below:
    More than one Enterprise Manager Agent was found for the host.oemlinux.oracle.com
    I found there were 2 agents in em console, how to delete the old agent from em console,anybody can help me?

    Click on the All targets tab, delete the agent.
    Then confirm that the delete is in fact happening.
    Click Setup, Management & Services Repository tab.
    Deleted Targets link.
    Time Deleted Completed must have a date in there...
    If all that fails - do a quick search - I posted the sql you can run against the repository to wipe it clean of an agent :-)
    Not too that if you are removing the O/S software - you need to use the runinstaller to remove the Oracle Home from the inventory.
    If you don't do this - future auto installs using the agentDownload script of the agent will fail.
    .Daryl

  • How to input unicode character set from oralce form 9i

    Hi,
    Can anyone show me how to input unicode character set from form 9i. I have designed a form and run it but when I input unicode charater in TEXT ITEM on form (FONT_NAME of this TEXT ITEM is New Roman, AriaTime l ...), but it display incorrectly nor stored it in Database.
    Thank you !

    Thank Duncan R Mills !
    My setting NLS_CHARACTER in Database as follow :
    SQL> SELECT * FROM NLS_DATABASE_PARAMETERS;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    PARAMETER VALUE
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_RDBMS_VERSION 8.1.7.0.0
    18 rows selected.
    Even if I can'nt input unicode character on Oracle Forms, It display incorrectly though I set exactly font_name.

  • How ican delet my apple id from my iphone?

    how ican delet my apple id from my iphone?

    Hi Go to Settings, Turn OFF Find, my iphone. Then in Settings, Restore iphone back to Factory, Settings Then iphone can be set up as new with another Apple, id Cheers Brian

  • How to delete an old network from the list on the iPad?

    Anyone know how to delete an old network from the listing and then add a new one? I did it when I first got my iPad and cannot remember how I did it! Hey, I'm an Apple rookie but I am trying. Take care and thanks in advance for any help.

    Setting > General > Reset > Network Reset

  • HT1918 I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it. Also my credit has expired so i need to delete it.

  • HOW TO DELETE ADOBE READER FILE FROM ADOBE READER

    HOW TO DELETE ADOBE READER FILE FROM ADOBE READER@ !@

    Your question make no sense. What exactly are you trying to do?

  • Does anyone know how to delete credit card details from an Apple account?

    Hi not sure if this is posted in the right place but i'll give it a go anyway.
    Would anyone know how to delete credit card details from an Apple account?
    Someone posted selecting 'none' in the payment section would work but i logged into my account online on a computer there aren't any options at all to do this.
    I tried hitting edit but there isn't a delete button.
    If anyone knows any help would be most appreciated!
    -F

    Answer should be here:
    https://discussions.apple.com/message/12832322#12832322

  • HT3702 How to delete credit card info from iTunes account

    How to delete credit card info from iTunes account?

    HI KiwiMCB,
    Please Contact Customer Care; an agent will be able to help you with that.
    Best,
    Sara

Maybe you are looking for

  • How do I animate graphics for ipad, a windows user who might jump ship

    Please read this recent post that I put up on the Adobe Flash forums site; only got one reply which wasn't much use to me, maybe you guys can help. No I'm not on here to moan about Mac not supporting Flash (and yes I know that in theory Apple have do

  • Problem during printing smartforms

    Hi, We are using Epson 9 pin printer for printing. We have custom page layout used in our sap script and smartforms with size 12 inch / 9 inch (80 column dot matrix printing). We are using SWIN (windows default printing) driver. Problem we are facing

  • How do you configure multiple appservers in iisproxy.ini?

    I am coming from the WebSphere world, and trying to figure out this whole WebLogic thing. The problem I am having is for the weblogic plugin for IIS. In WebSphere, the plugin was proxied by path and port #. I setup an iisproxy.ini and got it working

  • Automatic e-mail transmission issue

    Hai Gurus, Please hep me out with this issue. We have SCOT configured in our Quality system and the background job SAPCONNECT_INT_SEND is scheduled in a client, for ex say 100. Now we got a requirement that e-mails should not be sent automatically an

  • CS6 Update Error

    I am trying to install CS 6 updates. Keeps failing with error code U44M11210. Any suggestions?