Is it possible to create a rule across 2 models?

Is it possible to create a rule across 2 models? I added Jack as a creator of an articles in articles model and then I added a row to make creator a subclass of person. So now I'm trying to query across 2 models. I was trying the following query. Give me the grandfather of the author of the article with the title ERNIEX
SELECT m grandfater, c creator, t title
FROM TABLE(SDO_RDF_MATCH(
'(?t :title "ERNIEX") (?m fam:grandParentOf ?c)',
SDO_RDF_Models('articles2', 'family'),
SDO_RDF_Rulebases('RDFS', 'family_rb'),
SDO_RDF_Aliases(SDO_RDF_Alias('','http://purl.org/dc/elements/1.1/'), SDO_RDF_Alias('fam','http://www.example.org/family/')),
null));
When I run the query about I get the error
ORA-20000: We do not have a valid rules index for this Model-Rulebase combination
So I thought to create a index but I'm not sure how. I tired the following code but I think I'm doing something wrong. Can anyone point me in the right direction. Or for that matter does anyone know of a more extensive tutorial to using the database? Thanks
BEGIN
SDO_RDF_INFERENCE.CREATE_RULES_INDEX(
'rdfs_rix_articles2_faily',
SDO_RDF_Models('family', 'articles2'),
SDO_RDF_Rulebases('RDFS','family_rb')
END;
Ernest Lim

You are right, a rules index would have to be created for the rulebases and both the models you use in the query. The example in the rules index creation you have shown at the end of your post does exactly that - creates a rules index for the set of rulebases and models: RDFS, family_rb, family, articles2. Once that rules index is created you should be able to run the query without getting the error.
Did you get an error while trying to create a rules index using the code shown in your post?
FYI, a forum for posting semantics questions is at RDF Semantic Graph

Similar Messages

  • Possibility of creating Settlement Rule in Background?

    Hi Gurus,
               When I am doing TECO of the Maintenance Order everytime I have to create Settlement Rule.
               My settlement receiver Category (Cost Center) and Cost Center are fixed for  Order Type.
               Is it possible to create Settlement rule in the background while doing TECO of the Order.
               Please suggest if any User Exit is there.
    With best regards,
    Narendra

    Narendra,
    We are looking at exactly the same issue.
    As you are aware, you can only default one cost centre via the equip/floc...
    The only way we can see to have a pre-defined cost centre by order type/plant is to use user-exit [IWO10027|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] (default settlement rules).
    PeteA

  • Is it possible to create exception rule in Comparator sort order?

    I have been working on trying to learn how to use Comparators to sort Collections... In one of my recent experiments, I tried to order a PriorityQueue of String elements alphabetically, in ascending order, with one exception: any word beginning with the letter "z" should be given a higher priority than any other word. I haven't been able to find a way to do this, nor to discern whether or not it's possible.
    Any help is appreciated.

    Try something like this:public class MyComparator implements Comparator<String> {
        @Override
        public int compare(String s1, String s2) {
            boolean s1StartsWithZ = s1.startsWith("z");
            boolean s2StartsWithZ = s2.startsWith("z");
            if (s1StartsWithZ && !s2StartsWithZ) return 1;
            if (s2StartsWithZ && !s1StartsWithZ) return -1;
            return s1.compareTo(s2);
    }

  • Create a rule on mail delivery failure

    Hello,
    Is it possible to create a rule in the Groupwise client, that when a message bounce back (mail delivery failure) from our relay provider, that the email will be forwarded to an internal recipient.
    At the moment I cant get it to work. Moving that bounced email to a folder in Groupwise does work.

    Originally Posted by laurabuckley
    Hi,
    I've just created a rule to test the above scenario and have built the rule as follows:
    When new mail is received and subject contains "mail delivery failure"
    then
    Move mail to folder called Undeliverable
    then
    Forward message as attachment (my preferred forward method to preserve mime header information) to [designated address]
    End Rule Processing
    I've tested the above rule and it works perfectly on my GW8.0.2HP2 system with GW8.0.2HP3 client.
    Perhaps post more details of your rule here and we can assist you with troubleshooting it.
    Cheers,
    I have a very similar issue to this. If I have a bounce back, I want to have that email address extracted to another doc... can be anything... TXT file, Word, Excel.... just something where I can maintain bad emails. Any Ideas anyone?

  • Is it possible to create a wip sample with inventory valdity rule in spec

    Hi friends
    Can anyone please tell me
    Is it possible to create a wip sample with inventory validity rule in the item Specification?
    I have an item which is a wip (product) item and has validity rule defined for inventory. can i create a sample from the batch for it with inventory validity rule in the specification.
    Thanks in advance
    Prem.

    Hi Jay
    How are you.
    Yes, in process sampling only.
    Is it not neccessary to have a wip validity rule for wip products in the specs. I am able to create samples for wip products with inventory validity rule.
    Regards
    Prem.

  • Is it possible to create this type of 'Rule'....

    Hi,
    The spammers have got me good this time!! I am getting tens of emails a day asking if I want to buy gold. The problem is that I can't seem to create a rule to filter these out. The subject and sender are always different, and usually garbage. Also the email has no content, rather a gif image which is 8kb in size. I do tend to get a lot of emails from people who are not in my address book, so that option is not available to me. The only way I could imagine filtering these messages was to create a rule that if message contains attatchment 8kb (they are always the same size in my experience), then move to junk. Of course this rule seems impossible. How do you guys filter these messages out. I was already at the end of my tether with the gold stock options, but now I am also getting emails asking to buy a ring of some sorts!!!..... Any help please! Thanks

    Hello Gwyn.
    No single strategy is completely effective when it comes to managing spam. People who are intent on sending spam are ingenious at coming up with ways around any filtration schemes.
    You can add a number of rules in an attempt to resolve the problem but doing so in regards to spam is like a dog chasing his tail.
    In case you have unintentionally/unknowingly added to the problem regarding this increase in spam received, check Why was I "spammed" at my .Mac Mail address? which applies to any email account and How HTML Email Messages Relate to Unsolicited Commercial Email ("spam") which applies to any email client such as the Mail.app.

  • Is it possible to create rules in Mail outside of Preferences?

    Having used Mail/Preferences/Rules as the route to create new rules for messages in Mail, I have often thought that there may well be a simpler method which I have not yet discovered, to create new rules (as opposed to applying them) by highlighting the message in the inbox (or whichever mailbox you happen to be using) and creating the rule directly without having to mess around going through the Prefs routine. Anybody found a shortcut?

    Thanks for your helpful suggestion andyBall_uk.
    I've had a quick look at the second link you included (
    http://www.andreasamann.com/MacOSX/Mail_Scripts)but the developer seems to have stopped updated the scripts since Mountain Lion, so I probably won't tangle with one of those as I use 10.8.3.
    However I'm going to trial MailActOn and see how I get on. I'll update once I have had a play.
    Thanks again - always grateful for constructive replies.

  • Interesting - Different views when creating substitute rule in UWL and normal view

    Hi Guys,
    Just came across something interesting i thought i should mentioned it here incase someone knows why. When creating the substitute rule on the MSS main page one gets the window without a small road map, however if you do that via the UWL menu you get a nice view with a road map.
    From the main page  when you click on the create rule button you get this
    =>
    From the UWL side menu you get this, but the button being clicked is teh same. Anyone know how this works and how to make it the same ?

    Moderator Spotlight - Siddharth Rajora Thank you very much for your reply. So just to clarify a few things
    Is it possible at all to have the road map when creating substitution rules from the main MSS lane/manager view on the main page? I am on Webdynpro ABAP. If so can you please help with the steps.
    I am right in saying that the road map view in UWL is based on WEBDYNPRO JAVA?
    We are currently on ECC6 EH6, would i be correct to tell the boss that road map will is not available in EHP7
    Basically the boss would like the road map from the main MSS lane/Launch pad. Thats what he prefers. I have tried to identify the application that is used to display the road map but i cant find it, it looks like its not WEBDYNPRO ABAP. In UWL view When I right click on th button i do not get the technical help to see the application which is what i normally do and it works on the launch pad/MSS lane

  • Is it possible to create a custom display type in DIAdem, for example a speedomete​r type instrument​?

    As an example I have velocity data which shows a vehicle accelerating from rest to 60 km/h and then travelling at a constant speed. As opposed to displaying this data using a 2D axis system is it possible to create a new speedometer display type to display this information? Maybe this display type already exists but I have not come across it yet? I've been using DIAdem for a few days now. The current version I am using is 11.2. It has been suggested in the past that it was possible to display data using numeric displays etc but I can't seem to find the features in v11.2. Thanks for your help in advance.

    Hey Matthew,
    I'm sorry for the [extremely] delayed reply - I have been out of the office (and out of the country) for two weeks with extremely limited email access.  I've attached the files that I used to create the example you saw in the YouTube video embedded above.  Please note that I threw this together pretty quickly for the video, and that it is not "commercial quality."  Use this as a proof-of-concept upon which to elaborate to get started.
    The parts are:
    CAN Synchronization.tdv
    This is the DIAdem VIEW Layout that contains the video, map, 2D axis, and embedded user dialog with ActiveX gauge control.  Think of this as the "user interface" you see in the video.
    Gauge.sud
    This is the scriptable user dialog (SUD) box that is embedded in the VIEW Layout described above.  It contains the ActiveX control which I have affectionately named "MyGauge."
    DisplayCursorCommand.vbs
    This is the short script that is designed to react to the event that fires when the cursor is playing in DIAdem VIEW.  I have commented all 5-ish lines with their functionality.
    In order to register the script so that it fires in reaction to the event when the cursor is playing, I chose to register it as a DIAdem UserCommand (Settings » Options » Extensions » User Commands) and then run the line of code:
    View.Events.onCursorChange = "DisplayCursor"
    You could do this elsewhere within some other script.
    Let me know if you have any questions!
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments
    Attachments:
    Gauge.zip ‏7 KB

  • Is it possible to create a new tab in 'Default settings for items' option?

    Hi everybody
    I am Raghu working in EBP2.0 & I have come across a difficlty and that is of creating a new tab and also the fields 'GL a/c', 'cost centre' or 'internal order' in this new tab.
    First of all please let me know whether is it possible to create a new tab for these fields.
    The purpose of this new tab is to default the cost centre and GL account with reference to shopping cart.
    As per current scenario, user has to enter the cost centre & the GL code as many times as the number of items in a shopping cart. I mean, if you have 10 items in your shopping cart then 10 times user has to input the cost centre & GL account. To avoid this we are required to add new tab so that per shopping cart we can enter the GL account & cost centre only once.
    Your immediate response would be very much apprecited.
    Regards
    Raghu

    hi Ram & Sreenivas
    Thanks for your immediate response.
    Ram, we can default GL a/c & cost centre in org structure since client wants to us to keep the option of entering these for every shopping cart.
    Sreenivas, I checked the 'copy to clipboard' option & its not there in EBP2 and I feel what you meant as cost centre tab is account assignment tab.
    Let me explain you more clearly about this requirement.
    Current Scenario
    1.Say a user has added 5 items to his SC.
    2.User has to enter cost centre & GL code 5 times & then he can order
    Required scenrio
    1.Say a user has added 5 items to his SC.
    2.As per the proposed functionality, user will click on 'Default settings for items' button. Three tabs will appear-->Basic data, Internal note & Delivery Address.
    We have to provide a new tab here where in user will default his GL & cost centre for this shopping cart & then order. This will help user to avoid entering GL & cost centre 5 times.
    For some reasons our client is not interested in defaulting this data.
    Please help in this regard if time permits.
    Thanks
    Raghu

  • Is it possible to create LSMW for PQ10, PQ13?

    Hi Fridz,
    I have created the OM actions, now I'm trying to create LSMW for the actions PQ10 (creation of org unit), PQ13 (Creation of Position) but while recording LSMW relationships are not creating under - Maintain Field Mapping and Conversion Rules in LSMW. Please advice on this whether these transactions are possible to create LSMW with fore & backgroung.
    $Narayana

    Hi Narayana,
    Use BDC's for better maintainance of relationship. which worked fine for me.
    thanks,
    vasu.

  • How to create business rules from Jdeveloper 10.1.3.1.0

    Dear Experts
    Can I able to create Oracle Business rules from My JDeveloper 10.1.3.1.0. Using this link They are creating repositories, rule sets for their BPEL process, But in my version I cant found <BPEL components> under component palette. Why these features are missing, to get those additional features what I have to do.. ? Please suggest your best for me.
    Also Is it possible to build business rules from java sdk & from rule author..? If so means what is the difference, which one is having advantage.
    Thanks,
    Rajesh

    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/decision.htm

  • Is it possible to create Resuable component in Swing

    Can Some one tell me Is it possible to create Resuable component in Swing?
    I have around 100 applications and i have to create a common Component and I have to use for this to all 100 Applications.
    If possible can u send me code.
    Thanks
    Mohan Kumar

    Hi Prosun Bondopadhyay  ,
                   Component controller is the base of a wda component. its can be considered as the base class. all the other views can be considered as the sub classes of component  controller. so without the base class there is no existence for sub class rt?
    like we can use all the methods and attributes of a component controller(main class) across all the view(sub class) and the viceversa is not possible.
    hence we cannot create a wda without component controller.
    Regards
    Sarath

  • [Q:How do I]Create a ruler along my dokument.

    Hi well I wanna create a line with measures in mm (millimeter) along the side of a template I made. That is I wanna draw a ruler across the bottom and the side of the template so that the measurements of my creations can be seen in real ones I printed it. Now is there any way I can make this ruler in a easy way without sitting and drawing a line each millimeter of the side and bottom.
    What Im looking for is of course to make a architect scale on the temp so that I can see real scales ones printed.
    Thanks in advance

    Blend tool would be another option.
    Draw two vertical lines, blend them and tell it to put an instance every centimeter, or whatever.

  • LSMW for creating Derivation Rules in COPA

    Hi Experts,
    Is it possible to create a LSMW for COPA - Derivation Rules. When I am trying to select Default All tab to update the field name, the system is not permitting me to default the filed names.
    Phani

    Hi Phani ,
    I think your concern is about updating dervation rule values not derivation rule .
    You can cut paste 20 rule values at a time .. so use cut paste .. from excel.. Updating 1000 values will not take more than 20 mins ..
    I have never used LSMW for Derivation rule values.. as from excel you can easily cut paste and do it within 30 mins.
    Regards
    Sarada

Maybe you are looking for

  • External Hard Drives Mysteriously Losing Read/Write Privileges...

    I am currently running 10.5.8 OSX and for some reason all of my external hard drives are mysteriously losing their Read/Write privileges on my Mac Pro. I have not altered anything within my account or settings to my knowledge. I continue to have to u

  • Troubleshooting iMac Startup Problem

    I've been trying to troubleshoot a problem with my mid-2007 iMac 24" where it sometimes will not startup.  I can hear it turn on when I press the power button but it doesn't chime.  I can also hear the fan.  I don't boot from the internal drive as my

  • How to change workspace ownership

    Hi, the owner of a beehiveonline workspace left the company. Is there a way to change the ownership for this workspace or add an administrator? thanks, Claudio

  • How to Free up memory?

    I have a 4G nano and I currently have the 1.3 version of itunes. My problem is that I have 2.1G's of songs on the iPod abd it says that it is almost full. it tells me that 1.5 G 's are being used up by "other". What is this and can I free up space? P

  • (First look)SPECviewperf12 Benchmark- GT60 2OJ

    It just launched on Dec for the professional performance testing software - SPECviewperf12 which can be utilized to test NVIDIA Quadro K2100M. The latest version 12 is with more features compared with version 11. New and updated features in SPECviewp