About rule expression

hi,i want create an userdefined rule,the following is right
EXECUTE sem_apis.create_rulebase('user_rulebase');
INSERT INTO mdsys.semr_user_rulebase VALUES ('purpose_rule',
'(?stop <u:at> ?home)',
NULL, '(?stop <u:has_purpose> "gohome")', null);
but this one doesn't work,is there anything wrong with the second expression?think you!
EXECUTE sem_apis.create_rulebase('user_rulebase');
INSERT INTO mdsys.semr_user_rulebase VALUES ('purpose_rule',
'(?stop <u:at> ?home)(?home <rdf:type> <u:home>)',
NULL, '(?stop <u:has_purpose> "gohome")', null);

Hi,
What do you mean by "does not work"?
The syntax looks good to me, if this is not generating triples:
1. Make sure you add 'USER_RULES=T' to the CREATE_ENTAILMENT e.g.:
EXECUTE sem_apis.create_entailment('<ENT_ NAME>', sem_models('<model_name>'), sem_rulebases('OWLPRIME','USER_RULEBASE'), SEM_APIS.REACH_CLOSURE, null, 'USER_RULES=T');
2. Make sure you have triples like
<something> <rdf:type> <u:home>
The conditions in the antecedents part of the rule base are joined by an AND operation:
meaning both conditions need to be true:
(?stop <u:at> ?home) AND (?home <rdf:type> <u:home>)
I am not saying that is the syntax, I am saying both have to be true to generate the triple:
<something> <u:has_purpose> "gohome"
Regards!
Jorge

Similar Messages

  • Question about FC Express

    Hi all.
    I have no FC experience.....just some iMovie putzing with the family video's. I do use Photoshop CS5 and have years of experience with Pro Tools and work in film/TV production so I am not a total stranger to filmmaking and audio production, using difficult software etc etc. I spend hours every day in my music studio or editing photo's and minor video editing. Nothing deep like FCP though. I hear the FCP learning curve is brutal.
    Anyway, I am dabbling with writing music aimed at soundtrack stuff for film, TV and commercials and am wondering about FC Express.
    Would it be a good program to learn about dropping music into a video timeline?
    I was thinking about trying to put together some stuff I shoot, Mini DV and Flip HD stuff and then write music for it to practice with. I'd also like to try and come up with markers and hit points and all so that as I get better I don't look like a total bozo when I try to get a short or low budge Indie or student film to score.
    What I would really like to do is get some footage with dialogue and audio effect already mixed and then write to that.
    I have friends who work in post who have agreed to look around for some stuff for me to work with. If they were to give me sections of FCP sessions, would I be able to open those in Final Cut Express?
    Also, I read that FCE 4 does not have Soundtrack that 3.5 HD has. Is this a detriment and can one still buy 3.5 or has it been replaced with v4?
    Thanks.
    Message was edited by: Fumblyfingers

    FCE should do much of what you require.
    However, be warned. It is exactly the same app as FCP with a few items removed.
    So for "normal" editing the learning curve is identical.
    You will not be able to open FCP projects in it.
    If you need Soundtrack you should be able to buy a cheap FCE 3.5 Upgrade on eBay etc. and just install Soundtrack.

  • I don't know anything about Airport Express/Extreme

    hello, i don't know anything about Airport Express. i'm wondering if anyone could clear up some stuff for me. first, what kind of stereos work with the AirTunes feature. i've got an old (probs 14-15 years old) sony stereo, but it works fine and a pretty nice, what are the chances its going to work? also i just got a new appartment, and i am wondering how i would set it up. thanks, i'll probs have more questions later.

    your stereo should be ok, the analogue output from an airport express will connect direct to line inputs on the stereo
    i'd expect every stereo ever made for the consumer market to work correctly
    you can find more about airport express here...
    http://www.apple.com/airportexpress/
    the support section includes many set-up guides...
    http://www.apple.com/support/airport/
    but if you can't find an answer just post back here

  • Give me details about rule details functions conversion, currency etc in bi

    give me details about rule details functions conversion, currency etc in bi  when creating transformation

    Rule Type
    Use
    The rule type determines whether and how a characteristic or key figure, or a data field or key field is updated into the target.
    Direct Assignment:
    The field is filled directly from the selected source InfoObject. If the system does not propose a source InfoObject, you can assign a source InfoObject of the same type (amount, number, integer, quantity, float, time) or you can create a routine.
    If you assign a source InfoObject to a target InfoObject that has the same type but a different currency, you have to translate the source currency into the target currency using a currency translation, or apply the source currency.
    If you assign a source InfoObject to a target InfoObject that has the same type but a different unit of measure, you have to convert the source unit of measure into the target unit of measure using a unit of measure conversion, or apply the unit of measure from the source.
    Constant:
    The field is not filled by the InfoObject; it is filled directly with the value specified.
    Formula:
    The InfoObject is updated with a value determined using a formula.
    Read Master Data:
    The InfoObject is updated by reading the master data table of a characteristic that is included in the source with a key and a value and that contains the corresponding InfoObject as an attribute. The attributes and their values are read using the key and are then returned.
    The Financial Management Area characteristic is included in the target but does not exist in the source as a characteristic. However, the source contains a characteristic (cost center, for example) that has the Financial Management Area characteristic as an attribute. You can read the Financial Management Area attribute from the master data table and use it to fill the Financial Management Area characteristic in the target.
    It is not possible to read recursively, that is, to read additional attributes for the attribute. To do this, you have to use routines.
    If you have changed master data, you have to execute the change run. By reading the master data, the active version is read. If this is not available, an error occurs.
    If the attribute is time dependent, you also have to define when it should be read: at the current date (sy-date), at the beginning or end of a period (defined by a time characteristic in the InfoSource), or at a constant date that you enter directly. Sy-date is used as the default.
    Routine:
    The field is filled by the transformation routine you have written.
    The system allows you to select whether the routine is to be valid for all attributes for this characteristic, or only for the attributes displayed.
    Transformation rules generally only have one return value. If you select Return Table, the corresponding key figure routine no longer has a return value; it has a return table. You can then generate any number of values from a data record.
    For DataStore objects and InfoObjects: you cannot use the return code in the routine for data fields that are updated by being overwritten. If you do not want to update specific records, you can delete these from the start routine.
    If, for the same characteristic, you generate different rules for different key figures or data fields, a separate data record can be created for each key figure from a data record of the source.
    With InfoCubes: You can also select Routine with Unit. The return parameter 'UNIT' is then also added to the routine. You can store the required unit of the key figure, such as 'ST', in this parameter. You can use this option, for example, to convert the unit KG in the source, into tons in the target.
    If you fill the target key figure from a transformation routine, currency translation has to be performed using the transformation routine. This means that automatic calculation is not possible.
    Time Update:
    When performing a time update, automatic time conversion and time distribution are available.
    Direct Update: the system automatically performs a time conversion.
    Time Conversion:
    You can update source time characteristics to target time characteristics using automatic time conversion. This function is not available for DataStore objects, since time characteristics are treated as normal data fields. The system only displays the time characteristics for which an automatic time conversion routine exists.
    Time Distribution:
    You can update time characteristics with time distribution. All the key figures that can be added are split into correspondingly smaller units of time. If the source contains a time characteristic (such as 0CALMONTH) that is not as precise as a time characteristic of the target (such as 0CALWEEK), you can combine these characteristics with one another in the rule. The system then performs time distribution in the transformation.
    The time distribution is always applied to all key figures.
    Initial:
    The field is not filled. It remains empty.
    No Transformation:
    The key figures are not written to the InfoProvider.
    Unit of Measure Conversion and Currency Translation
    You can convert data records into the unit of measure or currency in the target transformation.
    Assigning InfoObjects for Converting Amounts or Currencies
    Use
    An InfoObject has to be assigned to a source field of a DataSource if currencies or units of measure need to be converted. The translation types require InfoObjects as input fields to carry out a conversion. You therefore have to assign the appropriate InfoObject to the source field.
    If the target has a fixed unit, you only have to assign an InfoObject if you want to carry out a conversion. Otherwise, you can select the No Conversion option.
    Procedure
    1.      You are in the rule details. Select the rule type Direct Assignment.
    2.      Select an appropriate key figure in the InfoObject Assignment field in the Source Fields of Rule area.
    3.      Choose the required conversion in the Currency field.
    4.      Choose Transfer Values.
    Example
    In your transformation, you want to assign the AMOUNT field of the DataSource to the FIX_EUR InfoObject in your target, carrying out a currency conversion. To do so, you assign the FIX_EUR InfoObject to the AMOUNT field in the rule details so that the currency can be read from the InfoObject.
    Hope this helps u...
    Regards,
    KK.

  • Documentation about Rule-Based Account Assignment Distribution

    Hello dear PSM Experts,
    In our project (using ECC6), we want to split in a PO the FM account assignment between several lines, according to the fund type of the initial account assignment (based from an referenced earmarked document).
    After looking in the customizing and in ECC6 PSM Public Sector Management
    Release Notes, we are investigating Documentation about Rule-Based Account Assignment Distribution.
    Can anybody provides me a link to a documentation, if any?
    Otherwise, I would greatly appreciate any help to use this functionality.
    Regards,
    François

    Hello,
    I am configuring this functionality currently in an ECC 6.0 environment for a public sector organization and have had an issue with the FMSPLITMAINT transaction.  When attempting to create a rule the 'create' 'copy' 'change' options are not available.
    Configuration has already been completed for Field Profiles, Action Profiles, & Rule Groups.
    The olny documentation I have been able to find was an appendix to the SAP Grants Management - Grantee course.
    Please respond if you there is any additional documentation which may be of assistance.  I have already tried notes: 991661 and 991962.
    Thank you

  • Off Topic: Books about Regular Expression

    Hi
    Somebody can to indicate books about Regular Expression in Oracle ?
    Thanks

    Regex tag of Blog of Volder.
    http://volder-notes.blogspot.com/search/label/Regular%20Expressions
    This entry mentions my regex solution :-)
    http://volder-notes.blogspot.com/2007/10/removing-duplicate-elements-from-string.html
    By the way
    My regex homepage mentions regex problems of perl like regex (regex of EmEditor).
    http://www.geocities.jp/oraclesqlpuzzle/regex/
    example questions (written by Japanese language)
    http://www.geocities.jp/oraclesqlpuzzle/regex/regex-2-1.html
    http://www.geocities.jp/oraclesqlpuzzle/regex/regex-3-5.html
    http://www.geocities.jp/oraclesqlpuzzle/regex/regex-4-4.html

  • I need to walk before I run, but I can't help it. Where can I learn more about writing expressions?

    I find myself daydreaming about cool ways to create, and though I am an engineer at heart, my education is in business management.  I speak fluently in three oral languages, but only babble incoherently in one or two programming languages. 
    I want to learn how to convert my visions into functions that siena recognizes.  IN addition to the awesome references that you guys are providing her online, are there books I can buy that explain how to write better functions and expressions? 
    - Something that allows me to progress at my pace?
    Thank you again
    Aaron
    aka Jagged Rocks

    Hi Aaron, I second you hopes and vision. Me also, I will buy some books or videos etc - for become better to do this. But it's in a early stage, still a Beta. So I think the best place is actually here. It's a thread with several (alreadY) excampelapps,
    there is questions answared , and it looks like a nice little community already here!
    Also, you can join (a little) Facebook-group: https://www.facebook.com/groups/projectsiena/ 
    There is also popping up several blog's....
    So - As long as Microsoft keep up the pressure on this AppTool, I think we can dig into it an learn a lot!  :)
    While having fun doing it! 
    Best regards Terje F - Norway

  • Two Questions about Airport Express

    All, I am a recent convert to using a Mac so bear with me.
    I have two questions about the Airport Express.
    Question if I buy one in the USA, I will visiting this week on holiday,can I use it the UK with a UK adaptor/apple plug?
    Can the Express be used with my current wireless network, using a Netgear DG834G V4, I have read lots in the forums about putting a $ sign in front of the WPA password?
    Any help and advice gratefully received.

    Tesserax wrote:
    Hello andixbox. Welcome to the Apple Discussions!
    Question if I buy one in the USA, I will visiting this week on holiday,can I use it the UK with a UK adaptor/apple plug?
    Yes, but at least two things to consider:
    o The US version of the 802.11n AirPort Express Base Station (AXn) only supports radio channels 1-11 in the 802.11g radio mode. Channels 12-14, used in other countries outside the US will not be available.
    o The AXn supports both the 2.4 and 5 GHz radio bands for 802.11n. The 5 GHz band is restricted in certain countries (like the UK) so operating in this mode may get you unwanted attention.
    That should be okay then because the Netgear broadcasts on channels 1-11. I hadn't appreciated the 5 Ghz band, but having checked both US and UK Apple sites the techspecs both mention 2.4 Ghz and 5 Ghz.
    Can the Express be used with my current wireless network, using a Netgear DG834G V4, I have read lots in the forums about putting a $ sign in front of the WPA password?
    If your intent is to have the AXn join the Netgear as a wireless client, then yes it should work. The "$" requirement was for WEP. This shouldn't be necessary for WPA or WPA2.
    I intended to use the AXn as an range extender, but you mention wireless client, is that something different?

  • Strange result about regular expressions

    Hello everybody,
    I write these codes to try regular expressions in Java, but there are some strang results. I read the reference like Sun Java Tutorials. however, I cann't find the problem.
    Environnement:
    WindowsXP Home + NetBeans IDE 5.0 + JDK 1.5
    Input String:
    "I write these codes to try regular expressions in Java, but it doesn't work. I read some reference like Sun Java Tutorials. Then, always cann't find the problem. Could you help me? Thanks."
    My codes:
    public static void main(String[] args) throws Exception, IOException {
    P.rintln("Let's go!");
    Date start = new Date();
    if(args.length != 1) {
    P.rintln("Input Error! Input format: java javaclass [directory path]");
    System.exit(0);
    StringBuffer sb = new StringBuffer();
    String input = TextFile.read(args[0]);
    sb = addSectionEelement(input, "re");
    P.rintln(sb.toString());
    P.rintln("Ok, it's over");
    Date end = new Date();
    System.out.println("It spends " + (end.getTime() - start.getTime()) + " ms.");
    public static StringBuffer addSectionEelement(String input, String regex) {
    Matcher m = Pattern.compile(regex).matcher(input);
    StringBuffer sb = new StringBuffer();
    int count = 0;
    while(m.find()) {
    count++;
    P.rintln(m.group());
    P.rintln("Found " + count + " fois.");
    return sb;
    Output:
    run:
    Let's go!
    Found 0 fois.
    Ok, it's over
    It spends 16 ms.
    BUILD SUCCESSFUL (total time: 0 seconds)
    However if I change the Bold line by
    sb = addSectionEelement(input, "r");
    The resultats become:
    run:
    Let's go!
    r
    r
    r
    r
    r
    r
    r
    r
    r
    r
    r
    Found 11 fois.
    Ok, it's over
    It spends 15 ms.
    BUILD SUCCESSFUL (total time: 0 seconds)
    I have no idea about it. And you?
    Thanks

    Hi guys,
    I re-examine the codes. In fact, it's the problem of encodings of the input file.
    See u

  • How to write workflow rules/expressions/SQL

    Hi all.
    We are recent users of CRM onDemand, we would like to write some workflow rules but cannot seem to find any information on how to do this. The help section is limited in answers, and some of the questions here are also not specific to what we would like to do.
    Does anyone have any advice on books, web sites, etc. on where to find the knowledge we need on how to write the workflow rules and use SQL and expressions in CRM on Demand?
    Thanks in advance!!

    For your first case:
    1. You cannot create a workflow in r15 for activity but in R16 you can
    Create new to create a workflow
    Name: Auto email send
    record type: activity
    trigger: when new record saved
    rules: put your rules by clicking on the fx icon i.e this is where you are entering the rule saying the owner is different from the person who is creating the activity or the delegated field is filled (another way of looking at it)
    then save the workflow
    In the actions section
    choose the action "Create Email Notification"
    In the To: Section choose "Relative User on Record" and Choose "Activity Owner"
    Save it. Make sure both the workflow and activity are marked active.
    2. In your second scenario:
    How do you expect to create an account and automatically populate the Sales rep's name - not sure
    But you can create an opportunity and auto fill with the Account Owner's name by using this in the field validation (you do not need the workflow), you can use the FieldValueJoin function.
    Hope this helps - btb there is no book you can go thro the help and you will find some directions

  • About Rules, not functioning properly.

    Dear friends,
       Can anyone tell me how to change a existing rule.
       And how to find out the Wage type which is participated in different rules.
       My requirement is I have to change the Wage type which is in one rule and have to assign another wagetype there,
    when I simply changed the wagetype , the calcualtion is not getting changed but able to see the calcualtion as it is before.
    Could anyone please help me out in this.

    If you are talking about 'Eligibility rules', you need to change the wage type model which is assigned to your adjustment type.
    Below is the path for configuration: Personnel management -> Compensation management -> Planning and Adminstration -> Adjustments.

  • Few questions about Solaris Express Devel

    Hi guys, I'm newbie of solaris, and I've a few questions to ask u .. I'm a freebsd user, and now, I wanna try Solaris express devel on my macbook .. I need to know if Solaris Express devel working with my macbook, 1830 c2d, combo ... And l need to know also how I can get software for it, on freebsd I have the ports, or packages, what about solaris ?? Now, I just trying it on vmware, for learning something ...
    Ty to all ..

    I've found pkg-get and it seem beautifully, working really great .. But, I need to know something about my hw, if it can work on it ...

  • Thinking about airport express but....

    I know there are probably one million posts about my question, but I really want a straight answer and I don't want to have to read through everything.
    I have my internet hooked up through my cable service. Will airport express, once plugged into my modem (which is hooked up to cable), will that serve as a nice wireless service for my macbook air? I just want something simple and easy for one computer, but since I'm in school I would like something that is fast as well.
    Side note: I will need an ethernet cable from airport express to my cable modem correct?
    Thanks!!

    Hello cmartin0204. Welcome to the Apple Discussions!
    I have my internet hooked up through my cable service. Will airport express, once plugged into my modem (which is hooked up to cable), will that serve as a nice wireless service for my macbook air?
    Yes.
    Side note: I will need an ethernet cable from airport express to my cable modem correct?
    Yes, that is correct!

  • Help About Regular Expression.

    Hello,
    I am trying to parse string buffer by using Regular Expression.
    Suppose my string buffer is:
    Hi , How are you?
    Hello: abc
    hurrey : [ this is test msg
    Pls reply to this mail
    Hello: xyz
    Test1
    I want to search string: "Hello: anystring till end of line" which is
    not included in [].
    So In above example my Regular expression should only find
    first "Hello: abc".
    Is it possible by using Regular expression?

    Can we have Regular Expression which will get both "Hello: string"
    suppose my string buffer is:
    Hi , How are you?
    Hello: abc
    hurrey : [ this is test msg
    Pls reply to this mail
    Hello: xyz
    Test1
    happy: [ test2
    my test
    Hello: abc
    then result should be :
    Hello: abc
    [ this is test msg
    Pls reply to this mail
    Hello: xyz
    Test1
    [ test2
    my test
    Hello: abc
    ]

  • FAQ's about Photoshop Express 3.0.1

    Photoshop Express 3.0.1 FAQ's:
    FAQ: Is the sharpen tool in Photoshop Express 3.0.1 the same as in the previous version ?
    No, the new sharpen tool incorporates the latest version of sharpening from our imaging teams at Adobe. It is different from the previous version in that the scope has been constrained to a range where we can preserve image quality while achieving the best possible sharpness.
    FAQ: Why does the noise reduction tool work differently  in Photoshop Express 3.0.1 than in the previous version?
    The range of the noise reduction tool in the previous version was wider than the the range of the tool in version 3.0.1 When it was used at the outer limits, it would cause images to lose detail and would degrade their quality. The new version balances the amount of noise reduced while still preserving image quality.
    FAQ: Why does my image automatically zoom in when I use the sharpen and noise reduction tools in Photoshop Express 3.0.1?
    Both the sharpen tool and the noise reduction tool can best be adjusted while viewing  the details of the image close up. It allows you to see the changes being made by the tool more clearly and allows for a much more precise adjustment. If you prefer not to use this feature, the zoom can be turned off in the settings panel.
    FAQ: How can I achieve a larger range of sharpen or noise reduction as in the previous version of Photoshop Express?
    While the features are not designed for uses outside of the ranges provided, you can achieve similar results by applying the maximum value for the tool,saving the image to your camera roll, and repeating the process.

    I don't think there was ever anything wrong with your iMac. It should have more than enough power even in its basic configuration. (I am assuming that the Hard Drive is not more than 75% full or fragmented. Either of those situations could cause dropped frames).
    There could be a fault with FCE and the first thing to try is to trash the preferences properly like this:-
    http://www.fcpbook.com/Misc1.html
    One thing is certain - throwing money at it will not effect a cure. You do not need a more powerful computer or another FCE. If it is not working OK it is because there is something in either your Mac or FCE that needs "adjusting".
    You could also go to FCE HD>System Settings>Memory & Cache and ensure the Application setting is at 100%.
    Ian.

Maybe you are looking for