Rules that perform calculations?

Hi all

I wonder how I can create rules that perform calculations.

For example: I need a rule to let me know the number of triples that satisfy a model.

Suppose that I have in my model RDF triples that indicate:

-Mary knows John.
-Peter knows John.
-Ana knows John.

and I have a rule that would express something like:

IF count (? y knows? x) > = 3
THEN ? x rdf:type PopularPerson.

Thank you very much.

Hello

OWLPrime builtin rules do not handle this kind of calculations. In general, it is also very difficult to implement this kind of calculations using the rules defined by the user.
That said, it is quite possible to adopt a hybrid approach. We can write a small application to implement the semantics defined in your rule and
Insert the result of the query (which is for links? x), with ' RDF: type PopularPerson "as a triple return in semantic model of Oracle. Engine OWLPrime Oracle can
launch other inference with the new information that is captured by '? Triple x rdf:type PopularPerson".

Thank you

Zhe Wu

Tags: Database

Similar Questions

  • Impossible to perform calculations in the background

    I have System 9 bi + AAS9.3.0.1

    From the console of the AAS I'm more able to run scripts of calculation in the background.

    When I run the calc script I select "Run in background" and click "OK".

    It seems to work. But when I check the background process I get the following:
    -start and end times are the same
    -status is always "successful".
    I check my data and can check without calculations have been made.

    I see that I can take a few minutes to perform calculations. I know this because I can run the same script calc in the forground and I see that it takes several minutes to run.

    I was able to run in the background until about 2 weeks ago. I went as far as restarting all my servers without effect.

    Any ideas what is the cause? Or how to fix?

    Thank you
    D

    If I remember correctly, it was a bug.
    Try to search for a file named workstatus.xml on the server of the EAS, rename the file and restart AAS.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Firefox does not take into account CSS rules that I put

    So, if you look at my site:

    http://leaveyourdailyhell.com

    In, say, Chrome and Firefox, you will see very different things. In Chrome, it seems I had intended; namely, the messages loop custom WordPress on the first page and the top of each "message" has correctly sized thumbnails, floated to the left. In other words, it obeys the CSS rules that I set. (And copy CSS I have, for the record, W3C validated - it came back perfect.)

    In Firefox, however, both of these div tags ignore CSS rules, I put. No floats; the images are their original sizes and, on the same page, where the band positions is supposed to have a custom background, it is not found. It is not even obey simple rules, such as the assignment of a custom color for the links. When I right click to inspect the elements, the CSS rules are not found!

    (And copy CSS I have, for the record, W3C validated - it came back perfect.)

    The validator displays 30 markup errors, 50 CSS3 CSS3 231 warnings and errors. The experimental unified validator returns 1763 CSS3 warnings.

  • I have a TouchSmart 300-1007 that performs a hard block after about 30 minutes to be turned.

    I have a TouchSmart 300-1007 that performs a hard block after about 30 minutes to be turned.

    Windows 7 Home Edition, the stock machine, even if it does even if I start in diagnostics (F9 at the start of the BIOS), so I doubt it has nothing to do with the operating system.

    By "hard block", I mean the screen goes black, the wireless keyboard is not flashing blue light on the USB FOB and the power button only turns off although it by hand for 30 seconds. I have to pull the power cord to turn it off.

    It started shortly after the application of the 5.12 version 2A8E update motherboard BIOS published 2011-03-24. Never should have done that; experience shows that I have more problems than improving when updatng BIOS' are.

    No heat problem (air vents are clean as a whistle). I suppose the best thing would be to restore the BIOS but I don't know if it is possible, or how to do it.

    This is my daily workstation and is now effectively a boat anchor / deadline / brick.

    Any ideas?

    Yay for me. My dose of GENIUS has had this problem for THREE DAYS running machine now without any problem whatsoever.

    It it CERTAINLY evil genius of this machine, no doubt.

    Other victims of the Touchsmart series should regroup and get some kind of compensation. I know that I had to buy a new computer to replace this one when it stopped working, and I spent a TON of time to solve the problem (it would be an easy solution to the factory; not so easy at home)

  • How can I view the Message rules that I created in Windows Mail?

    Once a rule is made, is there a way to display these rules that have been made previously and possibly forgotten?    You go to the Message and scroll to make rule of Message and follow the instructions, but nowhere there does not say how to view those already here?

    In the Menu bar: tools | Message rules | Mail (or new). Bruce Hagen ~ MS - MVP [Mail]

  • Creating a rule that monitors each carrot in a host

    HI -.

    I'm new to Foglight and trying to create a rule that is triggered if an individual soul on a multicore Linux usage exceeds a given threshold. I already have a rule that follows the overall use of the machine, but there is a desire for the end user to know if one or more hearts are too busy.

    Can someone give me some advice about the particular syntax of topology and the rule that would allow me to follow individual basic info? For global use the topology that I use is

    Host.CPUs where monitoredHost.name like '% machinName % '.

    and as a rule I've got

    AVG (#utilization) for 5 min # > registry ("Average_CPU_Util_Warning")

    It feels like the foregoing, topology must be correct, and the rule should be a loop on the number of cores and returns the value true if one is too high. Something like (I am also climbing the groovy learning curve):

    for i in 0.. #numberOfCores #.

    {

    If avg (#core.utilization for 5 min #) > registry ("Per_Core_CPU_Util_Warning")

    {

    Returns true

    }

    }

    return false

    Advice would be most appreciated.

    Thank you

    -Craig

    As John, the metric to be tested is in the list of processors under Host/HostCPUs.

    It's so much easier just to scope of your rule of "transformer":

    Processor where monitoredHost.name like '% machinName % '.

    The condition can be simply:

    AVG (#utilization) for 5 min # > registry ("Per_Core_CPU_Util_Warning")

    Kind regards

    Brian Wheeldon

  • view the sql code used in a cfquery that performs an update

    I want to see the sql code used in a cfquery that performs an update. I can't do it at all, advice?

    Have you looked at the docs? May I suggest the attribute of 'result '.

  • Looking for a method to search for rules that use a particular registry variable

    Hello

    I have a series of registry variables that hold email lists effectively different specific alarms.  Is there a way to query to use what are the rules that save variables?  His most difficult when several people create rules and lists.

    THX

    "mark".

    Mark,

    One method would be to export the foglight configuration to a file using the fglcmd program. You can find the file in the registry variable that interests you. You will see references to registry variables in the section rules.

    Example of export of the foglight management server bin directory:

    C:\Quest_Software\Foglight\bin>fglcmd.bat - usr - pwd foglight cmd - foglight util:configexport f filexxx

    David Mendoza

    Foglight Consultant

  • where can I see all the business rules that are running

    Hello
    We said that it does not exist in our planning v11 but can't find it.
    where can I see all the processes (such as business rules) that users are running?
    Thank you.

    Hello

    They probably meaning that the work console > tools > console work.
    More information > http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_user/job_stat.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • is it always necessary to save edit data in temporal reasoning somewhere? is it possible that something calculated rules itself?

    @With the help of temporal reasoning I give out all the months in the given interval so tell rate changes every month. But for that i'll need the rate changing Al month from some of the databases or should mention only in OPA. Right? What happens if I have a scenario that the rate for the following (next) month depends on the value of output from the previous month. and this will go until the last months apart. Here I need a loop that is not possible in the OPA. any other solution?

    the interval is jan 2015-2016 jan.

    output = a + b

    a and b he's be entered. but say 'b' value is constant for all calculations for months. and given the value of 'a' will be used only for 2015 jan as its different for each month.

    But then for February 2015 value of 'a' will be out January 2015. and so on.

    I dug up an example of compound interest that some time ago, I created which may give you some ideas. BTW, I assume you are using OPA 10.4?

    In this example, the value of the currency changes every month, depending on the value of the previous month. For example: 1 January $2015 1 000 is deposited at 5% interest, and February 1, 2015 an another $1,000 is deposited at 10% interest, March 1, 2015, the final amount is $2 019,69. First you must calculate the amount from January 1, 2015, to February 1, 2015, for $1,000 at 5% interest which is $1 004,26. February 1, 2015 March 1, 2015, the interest must be calculated is £1000 + $1 004,26 to 10% interest.

    This should work for any number of months. In the test case, I've tried, I used only 3 months.

    Here are the details...

    Entities

    Global

    the month

    Relationships

    Global - one - to-many--> of the month (containment relationship: the months)

    the month - several - to-several--> of the month (name of the relationship: the immediate previous months)

    Rules for calculation of compound interest

    the final amount for the month = the amount of the principal for the month * Xy ((1 + le taux d'intérêt pour les mois/100/365), (the number of days in the month))

    (loop rule)

    the amount of the principal for the month = the amount of the deposit for the month + the amount of deferral on the previous month

    (loop rule)

    the amount of report on the month previous = InstanceSum (the immediate preceding months, the amount of report for the month)

    (loop rule)

    the amount of the deferral for the month = the amount of the principal for the month * Xy ((1 + le taux d'intérêt pour les mois/100/365), (the number of days in the month))

    Cross the reasoning (inferred relationship) entity

    the month (month) is a member of the immediate previous months so

    .. .the start date of month previous = AddMonths (date of beginning of the month, - 1)

    Dates

    is the month the sooner if

    .. .the beginning of month date = the date of beginning of the first month

    the start date of the first month = InstanceMinimum (the months, the date of beginning of the month)

    See you soon,.

    Jasmine

  • Lost mail rules section "perform the following actions.

    Hi-

    Install a new version of El Capitan (10.11.2). Set up Mail for the first time. Adding rules to specific e-mail to selected mailboxes. The more rules, I added more I noticed that the section "Perform the following actions" became smaller until this article is no longer usable (see photo). Any ideas what can be done? Is this a bug?

    Thank you!

    -Dave

    Please take these steps to remove the mail folders 'sandbox '.

    Step 1

    Back up all data.

    Triple-click anywhere in the line below on this page to select this option:

    ~/Library/Containers/com.apple.mail

    Right-click or Ctrl-click on the highlighted line and select

    Services ▹ Reveal

    the contextual menu.* A Finder window should open up with a folder named "com.apple.mail" selected. If this is the case, move the selected folder - not only its content - on the desktop. Open the window Finder for now.

    Restart the computer. Launch Mail and test. If the problem is resolved, you may have to re-create some of your e-mail settings. Any writing paper custom that you created may be lost. Ask for instructions if you want to keep these data. You can then delete the folder that you moved and close Finder.

    CAUTION: If you change the content of the sandbox, but leave the folder itself in place, Mail may hang or starts any. Remove the tray to sand everything will be rebuilt automatically.

    Step 2

    If step 1 does not resolve the problem, repeat with this line:

    ~/Library/Containers/com.apple.MailServiceAgent

    * If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

  • Continuously perform calculations on the data

    Hey guys,.

    So I have this program that generates pulses of signals using NOR-SCOPE, and I initially did so that each time that the user presses a button that they will perform certain calculations in order to generate a value that is stored in a table. My mentor now wants me to do so that it generates continuously pulse signals (not a single signal) and adds the values in a table. The signal seems so I need to use the parameter N samples on NI SCOPE as it does in the code below, although if anyone has a way to change this, it would be nice too.

    So basically, how can I calculate continuous pulse generated automatically over time signals? The user does not have to run the program and the computer does the rest.

    Thank you!

    You must migrate to a structure of producer/consumer. In the loop of the producer acquire the data contimuously and pass it to the loop of consumption. In the loop of the consumer, analyze the data and store the data as needed.

    A variation on the theme that I recommend is that instead of using a queue to pass data, use a user-defined event. The reason for this change is that your current code (which is basically what will end up in the loop of the consumer) is so pass data to loop through an event will allow him to fit into the current structure of the user interface.

    Oh, Yes, one more thing: get rid of the Express live. It's time to remove the training wheels...

    Mike...

  • Business rules that write to members as read-only?

    Hi all

    Hyperion Planning 11.1.1.3 user with a read access to the members were able to write the data using business rules.

    Now, let me know if this has been fixed in the newer version 11.1.2.3 or still they exist.

    Concerning

    Anubhav Boitel

    Hello

    Not is still not corrected in 11.1.2.3 as well. And I don't think it will be close in early releases as Essbase must resolve individual access permissions which runs the rule and which would add something to the current schedule of enforcement of the rule.

    Incase there are such better rule make you a folder separated with restricted user access on them. As this is a very difficult task to check for the planning system to see what are the members in the BR has the user to access. I think that's the reason to launch access to the BRS because they are very sensitive which can make your app obsolete in terms of data.

    Thank you

    Amith

  • LR6 freezes after that performance option checked

    I've recently upgraded to LR6 and now have problems with developing mode.  I checked the box for the performance of the video card, and my card appears.  It is nVidia 745M with 2 GB of RAM. My laptop has a 2.4 Ghz Intel i7 dual core processor. When I'm in library mode things work very well, and the video is much faster.  But when I click a PIC and try to go to develop the area of the image will grey and freezes.  The only way out is to cancel the LR and not getting any changes made.  If I reboot and uncheck this box in the performance parameters, I can work OK.  Is there any solution for this?

    In fact if your vid card can be used correctly this box options gets verified by LR automatically, at least that's how on my systems. Laptop Desk had checked the box use GPU, don't.

    So put you a check mark in this box to Option you did that LR is not. Uncheck the box and see what happens.

  • Application of CSS rules that exist in a new HTML element

    It is not possible to apply a CSS rule to an HTML element in 2014 DW. For example, I created a new H1 element, but I can't ask that, to a rule existing CSS, so I duplicate an existing CSS rule, rename it and then apply the H1 element to this new CSS element.  A real problem! This must be a simple process that I was easily able to do in previous versions of Dreamweaver. Anyone know if the next version of DW you will connect new HTML elements to the existing CSS rules?  Or is it a design bug that will be fixed soon?

    As I mentioned before, it does not in Live View mode. If you are in Live View and not using fluid grids, click the Live View dropdown and choose the design view.

    If you use flow layout grid, you must make a change to your fluid grid .css file return Design view. Close all other files and add the X below to your fluid grid css file...

    /*

    Properties Grid Dreamweaver fluid

    ----------------------------------

    DW-num-CLO-mobile: X 4;

    DW-num-CLO-Tablet: 8;

    DW-num-OCOL-Office: 12;

    DW-gutter-percentage: 25;

    =====================================

    Save and restart the program.

    From there over DW will treat your FGL as a normal page, so you will not have fluid and right grid guides, but view Design new, available in the Live View drop-down list.

Maybe you are looking for