Make changes via OntModel packaging

So I create a chart with an attachment as follows:

Piece attached attachment = Attachment.createInstance)
Attachment.NO_ADDITIONAL_MODELS, "OWLPRIME."
InferenceMaintenanceMode.UPDATE_WHEN_COMMIT,
QueryOptions.DEFAULT);
graph = new GraphOracleSem (oracle, "mc_sem_model", attachment).

And I rode the ModelOracleSem with OntModel interface as follows:

ModelOracleSem oracle_sem_model = new ModelOracleSem (graph);
Model OntModel = ModelFactory.createOntologyModel (OntModelSpec.OWL_MEM, oracle_sem_model);

and then a tent to make changes via OntModel as follows:

graph.commitTransaction (); Make sure that the index of rules is valid
Model.Begin ();
model.createClass (NS + "blin"); Here, it blocks
Model.Commit ();
graph.commitTransaction ();

On the afformentioned line I get the below error. In addition, a field of State mdsys.sem_rules_index_info control I see index of rules has cancelled.

Exception in thread "main" java.sql.SQLException:
ORA-20000: we do not have a clue of rules applicable to this combination of model-modules
ORA-06512: at the 'MDSYS. RDF_MATCH_IMPL_T', line 695
ORA-06512: at the 'MDSYS. RDF_MATCH_IMPL_T', line 222
ORA-06512: at line 1

However, I can make changes to ModelOracleSem as follows:

ModelOracleSem oracle_sem_model = new ModelOracleSem (graph);
() oracle_sem_model.createStatement
oracle_sem_model.createResource (NS + "Sub"),
oracle_sem_model.createProperty (NS + "prop"),
oracle_sem_model.createResource (NS + "obj"));
oracle_sem_model.commit ();
graph.commitTransaction ();

How is it that I can change ModelOracleSem but not the OntModel?
-Alexi

Published by: user10960203 on September 3, 2009 18:44 - I forgot to mention the attachment and the ModelOracleSem part...

Hello

Could you try the following code to the place?

Piece attached attachment = Attachment.createInstance)
Attachment.NO_ADDITIONAL_MODELS, "OWLPRIME."
InferenceMaintenanceMode.UPDATE_WHEN_COMMIT,
QueryOptions.ALLOW_QUERY_INCOMPLETE);

Chart GraphOracleSem = new GraphOracleSem (oracle, modelName, attachment);
graph.commitTransaction (); Make sure that the index of rules is valid

ModelOracleSem oracle_sem_model = new ModelOracleSem (graph);
Model OntModel = ModelFactory.createOntologyModel (OntModelSpec.OWL_MEM, oracle_sem_model);

Model.Begin ();
model.createClass...

There are two changes
(1) I moved the first commitTransaction above this createOntologyModel API call.
(2) I used ALLOW_QUERY_INCOMPLETE

I am able to run the code has changed (using the latest Jena adapter).

(1) is necessary because this call createOntologyModel will in turn call the GraphOracleSem API to graphBaseFind. However, the implication was not created. So there was a little problem of synchronization in your code.

(2) is necessary because model.create (...) will add new triple in the graph resulting in the incomplete state. So, we have to allow this status.

It will be useful,

Zhe Wu

Tags: Database

Similar Questions

  • How can I get rid of used to install pop up ' want allow you the following program to make changes to this computer Microsoft (R) Antimalware package?

    Original title: How can I get rid of used to install poping up upward

    Do you allow the folling program to make changes to this computer Microsoft (R) Antimalware package or not change when these notifivations appear he said iam using32, but I use 64 how do I do that I'm the only one who uses my computure and why doI got one admitted. Please help me remove my screen when he tellsme one down to pick one, I need topick as system repair and save, the software and hardware I don't knowwhere tobegan microsoft wants me I pay 250.00 justgot the computure 4 months ago, they got onhere and bumble so please help fix me it is a toshiba satellite L755 he only Julien can dosince I am disabled and stay in bed much game play to win thingsand looking for things and to make doctor appointments

    Hi EatonmcMT,

    1. what security software is installed on the computer?

    2 did you do changes on the computer before the show?

    I suggest you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

     

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: During the scan of the hard drive if bad sectors are found, the scanner tries to repair this sector, all available on which data may be lost.

    Let us know if that helps.

  • Changing table via the package with immediate execution (problem)

    Hello

    I have a unusual problem. I have a package that contains the procedure that via execute immediate statement, creates a table on which he performs different actions for example:

    -alter table some_owner.dummy_table noparallel

    -create index some_owner.idx_name on some_owner.dummy_table (column)...

    But I only managed to run move and create synonym table/public via execute immediate statement. Actions as alter table and create index fails with error ORA-01031: insufficient privileges.

    Note If call these commands outside the package (a simple script) this all done OK.

    I found a way, where I set the AUTHID CURRENT_USER command create package statement. In this way all the actions executed OK.

    I wonder why I can't change the table via the package with immediate execution on a table that is in the tablespace "SOME_TABLESPACE" and the title of owner "SOME_OWNER", without putting the AUTHID command on the package.

    There must be a problem why a package cannot change the table which is owned by the user 'SOME_OWNER '.

    All useful responses would be appreciated.

    I have a unusual problem.

    No - you don't have. This question has been answered SEVERAL times on this forum and others.

    But I only managed to run move and create synonym table/public via execute immediate statement. Actions as alter table and create index fails with error ORA-01031: insufficient privileges.

    OK - your username doesn't have privileges to do these operations or only received privileges through roles.

    Roles are DISABLED in named PL/SQL blocks that use of the AUTHOR's rights.

    Note If call these commands outside the package (a simple script) this all done OK.

    I found a way, where I set the AUTHID CURRENT_USER command create package statement. In this way all the actions executed OK.

    Of course - the roles are NOT disabled in named PL/SQL blocks that use the rights of the APPELLANT or in anonymous blocks.

    I wonder why I can't change the table via the package with immediate execution on a table that is in the tablespace "SOME_TABLESPACE" and the title of owner "SOME_OWNER", without putting the AUTHID command on the package.

    Well now you know!

  • Cannot make changes to the parents control settings (Windows 7)

    I've seen several comments regarding this same problem, but so far no solution.

    I am the administrator, but I get an error when I try to access the parent on standard accounts control settings.  Now, what's even weirder, is that I am able to access ONE of the standard accounts, and there is nothing different between this account and others.

    I have tried all the solutions already posted:

    -running 'services.msc' and the implementation of parent controls (which is said by the way, says "this service is a stub for of Windows Parental control feature that existed in Vista", which is strange, it's as if there's no 'Parental control' in Windows 7?);

    -create a new administrator account via the control panel (in the case where my administrator account is corrupt), by restarting and trying to put Parental controls

    -create a new administrator account using the command prompt "net user administrator / Active: Yes";

    -in the course of running "sfc/scannow".

    See http://answers.microsoft.com/en-us/windows/forum/windows_7-security/error-unable-to-make-changes-to-parental-control/a17654d8-ff11-4fd2-8ae4-d96170715373; http://answers.microsoft.com/en-us/windows/forum/windows_7-security/windows-7-i-cant-change-parental-controlwhen-i/25390eea-00dd-411b-bfd0-dec9ed459106; http://answers.microsoft.com/en-us/windows/forum/windows_vista-security/parental-controls-error-unable-to-make-changes-to/70d3c356-eb55-4e93-98a0-b5f96ac44eea; http://answers.microsoft.com/en-us/windows/forum/windows_7-security/i-am-trying-to-set-up-parental-controls-and-when-i/f232d8ac-4f6d-e011-8dfc-68b599b31bf5; http://answers.microsoft.com/en-us/windows/forum/windows_7-security/windows-7-i-cant-change-parental-controlwhen-i/25390eea-00dd-411b-bfd0-dec9ed459106; http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/unable-to-make-changes-to-parental-contol-settings/d2a95230-f657-43CD-8294-03fc7ccb72fd

    (By the way, I leave here the 'answer' who said that this question should be asked on the support forum for Windows Live, if you search on this forum, you will find that the 'response' they provide is to ask the question on the Windows support forum.  ;)

    ANY OTHER IDEAS?

    Did you you run regedit as an administrator? It is a common problem in trying just new values. This is done by right-clicking on the program and selecting "Run as Administrator". This allows you to write new values.

    If you would like more information on this subject by me, read the last post on page 3 here:
    If you have recently encountered this problem, I would recommend a system restore, and I explain the reasons in the tread above.
    I hope this helps!
  • My flooded small KB image document files after I enabled to make changes on an update of Firefox?

    I allowed Firefox make changes on an update which resulted in my Document folders will be victim of flooding with lots and lots of miniature files from 1 to 4 KB.

    Seems to be linked to already open web pages. I tried to copy and paste the names of files, but this was not possible.

    Also some subfolders disappeared while the content of the word folder is always available

    Too many documents duplicate in the same main Document folder of my selection?

    Annette

    Sorry, you experience these symptoms.

    You voluntarily use the beta pre-release for a particular reason?
    Firefox 44.0b1 is the first of a dozen or more betas and sometimes there are flaws with it.

  • I get the message that dashlane officer wants to make changes.  How can I stop this?

    I get a message dashlane agent wants to make changes and I would like to know how to stop this message from appearing.

    Try to go to Safari/Preferences/Extensions and disable all extensions. Quit Safari, reopen and see if the site to load now. If so, enable the extensions one or two at a time until you find which extension is causing the problem.

  • Why firefox did ask to make changes to my computer whenever I open the browser. Why is the screen pixelated all?

    When click on firefox on my desktop that a message appears to ask me if I will allow firefox to make changes to my computer. It happens every time. each page is also all pixelated and barely visible. the Explorer IS NOT to do THIS.

    A possible cause of this message, it is that Firefox is configured to run as administrator.

    Make sure that Firefox is not set to run as administrator.
    Right click on the desktop Firefox shortcut and choose "Properties".

    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

    • Privilege level: "Run this program as Administrator" should not be selected
    • "Run this program in compatibility mode for:" must not be selected

    Also check the firefox.exe program properties in the program Firefox (C:\Program Files\Mozilla Firefox\) folder.

  • What is UIMgmt?  He wants to make changes in my MacBookPro ElCapitain 10.11.05

    What is UIMgmt?  He wants to make changes in my MacBookPro ElCapitain 10.11.05. Should I let him make changes?

    Have you installed a kind of 'Security' software for your Mac? Then, you have two options: uninstall it (preferably) or let it do its thing, which can be.

  • I can't make changes to the settings of Firefox - none of this works

    As usual, when I allow an update firefox Win Desktop, more things gets sacked. God I wish there was an alternative to that shit from ff!

    I can't make changes to the settings of Firefox - none of this works

    It was theme Aeon 7.5 - this is obviously totally redesigned the appearance of the settings options and caused my mouse does not work.

    Thanks for your help - and I'm sorry for the insults.

  • When you start firefox, pop-up screen wishes to leave firefox to make changes on the hard disk on the computer. I must say yes, or firefox does not start. Next time.

    Is this a problem of firexfox, or something is wrong with my drive? I don't have this problem when you use IE or Opera, Firefox only. I have to let Firefox to make changes to my hard drive, or it does not start. Once I click on Yes, Firefox works. However, when I close Firefox and try to open it again, the thing is repeated with msg popup to change the hard drive...

    Make sure that Firefox is not set to run as administrator.

    Right click on the desktop Firefox shortcut and choose "Properties".

    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

    • Privilege level: "Run this program as Administrator" should not be selected
    • "Run this program in compatibility mode for:" must not be selected

    Also check the firefox.exe program properties in the program Firefox (C:\Program Files\Mozilla Firefox\) folder.

  • How can I change which programs are allowed to make changes to my computer?

    OK - I'm a bonehead, I was getting the message "Do you want to allow this program to make changes to your computer" every time I open Firefox and fixed this problem of deselection "run as Administrator", BUT in the meantime, somehow got in a screen that allowed me to select no security at all when opening a program. How can I return to this utility so I can reset the default value?

    Hello, please refer to http://blogs.msdn.com/b/hyperyash/archive/2012/07/18/disabling-user-account-control-in-windows-8.aspx

  • Lately everytime I open firefox I get the window «do you want this program to make changes to your computer...» »

    Hello

    I would be so grateful to know how to fix t his, because it's really getting on my nerves.
    
    I have windows 7 pro 64 bit. I mostly always use firefox. Whenever i opened a  new browser, I never got hit with the windows badge and "Do you want this program to make changes to your computer...." or something to that effect. YOu who have windows 7 know what I mean. Of course I click yes, but I NEVER had to do this before. I don't know what changed, what might have happened. I had to have help with some software unrelated to firefox and someone had remote work on my notebook, but he should not have changed browser settings. It is really irritating me to now end to always open the browser now and have to hear that annoying thing and the badge.
    

    My other browsers IE and chrome do not do this.

    How can I fix this? It was never the case before for years.
    

    Thank you thank you very much in advance. I can't use this browser if that's going to happen, he finds himself on my nerves.

    A possible cause of this message, it is that Firefox is configured to run as administrator.

    Make sure that Firefox is not set to run as administrator.
    Right click on the desktop Firefox shortcut and choose "Properties".
    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

    • Privilege level: "Run this program as Administrator" should not be selected
    • "Run this program in compatibility mode for:" must not be selected

    Also check the firefox.exe program properties in the program Firefox (C:\Program Files\Mozilla Firefox\) folder.
    If you cannot make changes, and then start Windows Explorer as an administrator.

  • Whenever I try to login, I get: "you want the following program to make changes to this computer?

    A few days ago, I started getting the following message EVERY time I try to open a session:
    «You want the following program to make changes to this computer: it lists the FF and Mozilla Corp.»
    I have to click 'Yes' EVERY time, and then it seems my Comcast home page.
    I have a PC with Windows 7.

    In addition, when my home page appears, 3 small icons at the top right do not appear. (Minimize, X)

    A possible cause of this error is that Firefox is configured to run as administrator.
    Make sure that Firefox is not set to run as administrator.
    Right click on the desktop Firefox shortcut and choose "Properties".

    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

    • Privilege level: "Run this program as Administrator" should not be selected
    • "Run this program in compatibility mode for:" must not be selected

    Also check the firefox.exe program properties in the program Firefox (C:\Program Files\Mozilla Firefox\) folder.

  • If I make changes in the "' window customize," ' and change my mind,.

    How to exit the window without changes that affect it?

    Firefox customization automatically saved when you make changes.

    By default, you can restore

    If you accidentally click on the button "Restore Default", you get the button "CANCEL" next "Restore Default"

  • Thunderbird 29.5 causes Windows 7 to seek permission "to make changes to this computer.

    This has happened only since the upgrade to 29.5. No other version has caused this problem. TBird 29.5 also loses its icon on each new startup get up every morning, but not a restart, requiring a manual purge of the iconcache.db. Why is - what happens to 29.5 and what workaround for these problems?

    Re: "Windows 7 permission" to make changes to this computer"". "

    In addition to changing the UAC - image settings as shown here:
    http://www.PCWorld.com/article/2046046/how-to-fix-your-PCs-worst-annoyances.html

    Try this for the specific programmes:

    • Go to the shortcut properties Compatibility tab
    • Make sure that "Run as Administratror" is NOT checked
    • Make sure you check "run in compatibility mode for:" and select "Windows 7"

Maybe you are looking for