How can I delete owl imports? - owl

For example, I have imported ontology x.owl and y.owl into z.owl. I want to remove x.owl after some reasoning. How can I do this using the owl api?

Related

Is there a way to show pdf in its original structure in the human review custom entity labelling in aws sagemaker?

I have modified this sample to read PDFs in tabular format. I would like to keep the tabular structure of the original pdf when doing the human review process. I notice the custom worker task template uses the crowd-entity-annotation element which seems to read only texts. I am aware that the human reviewer process reads from an S3 key which contains raw text written by the textract process.
I have been considering writing to S3 using tabulate but I don't think that is the best solution. I would like to keep the structure and still have the ability to annotate custom entities.
Comprehend now natively support to detect custom-defined entities for pdf documents. To do so, you can try the following steps:
Follow this github readme to start the annotation process for PDF documents.
Once the annotations are produced. You can use Comprehend CreateEntityRecognizer API to train a custom entity model for Semi-structured document”
Once entity recognizer is trained, you can use StartEntitiesDetectionJob API to run inference for PDF documents

save an .owl file where opened from url in protégé

I downloaded dron ontology using protégé "open from url".In it's .owl file is just a series of urls that protégé using these urls to load them from internet.
I'm saving the project but the only thing that is saving is the original file(the file witch contain urls) and every time I should get all of data from the internet.what should I do to save complete file on my computer disk?
Save a copy of the ontology and of each imported ontology to the same folder. Next time you open it in Protege, a catalog.xml file should be created, and Protege will use the local copies.
This should work as long as the ontology IRI for the imported ontologies matches the import IRI in the main ontology - i.e., if the ontology IRI matches the URL for the ontology document. If that's not the case, Protege won't be able to know which ontology is at the remote site without downloading it; in that case you have to follow AKSW's comment and change the import axioms.

naming owl ontology in protege

I am using Protege 4.2.0.
When I write a new ontology, I can save it to a local file on my machine, e.g.,
GreatNewUpperOntology.owl
If I now want to import that ontology into a new ontology, I can find the file on my hard disk using the Active Ontology tab, Ontology imports panel (lower panel), Direct Imports +, "Import an ontology using a specific file"
The GreatNewUpperOntology imports properly, but shows up with a name like:
untitled-ontology-93 (http://www.semanticweb.org/myname/ontologies/2014/9/untitled-ontology-93)
QUESTION: Is there a way for me to save my ontology to the semanticweb.org site with the descriptive name I gave the file on my own computer, e.g., "GreatNewUpperOntology"?
Thank you!
A colleague helped me with this one....
Open the file in Protégé and go to the Active Ontology Tab, if I’m not mistaken you’ll see the “untitled-ontology-93” in the Ontology IRI field. Replace that field with whatever you want the name to be and you should be all set.
That works!

create.js, createPHP and Cakephp

We are trying to implement in page editing for our cake app. We would like to use create.js for the frontend and createphp to handle the connection between create.js and cakephp. I have been doing a lot of research on RDFa and I am generally baffled by how all this links together.
What I have:
Editable interface
Endpoints via actions in cakephp
What I need:
A way to convert the data sent by create.js to my database structure and a way to send data to create.js for rendering.
I have gotten to the point in createphp where you are supposed to create your own mapper. I don't know what the mapper should contain. It mentions that is has built-in mappers (Midgard\CreatePHP\Mapper ?) but I don't know how to load those either.
I have read the documentation but it doesn't give details on how to accomplish these tasks.
Thank you for your help on the two following questions.
1. How can I convert my data from create.js to cake and then back again for the views? (possible solution createPHP but doesn't have to be)
2. How do I create a mapper for createPHP or where could I find information to learn how to create a mapper for my instance?
Yeah, the documentation is unfortunately rather sparse. I will create an issue on createphp linking to this post, to give some hints how the documentation could be improved.
I try to explain how things work:
To convert the data from the REST call to your model, you indeed need a RdfMapper instance. See the setup section of the tutorial how you bootstrap that. the bundle comes with mappers for doctrine, which you can read for inspiration if you do not use doctrine. I recommend to extend AbstractRdfMapper in that case.
To render the rdfa, you need to configure what fields of your class should be what rdf type. You can either use the array mapper as in the tutorial, or use the xml mapping, or your own RdfDriver
The whole process is working fine in the symfony2 CreateBundle.

Couldn't Load OWL file using OWLAPI

I’m trying to load .owl file using owlapi thorough net beans to insert individual and its data properties using the code listed in owlapi documentation but it couldn't load the file, but when I converted the .owl file to .rdf format it was loaded successfully and i was able to insert the required data. I need to manipulate .owl file not .rdf format
Following is the code I have used to load the .owl without succeed
File fileBase = new File("src/java/ontology.owl);
OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
OWLOntology ontology= manager.loadOntologyFromOntologyDocument(fileBase);
but when i have used the rdf fromat as shown below it was loaded succefully
File fileBase = new File("src/java/ontology.rdf);
So how can I overcome this issue and load the .owl file?
Is the following command is the best command to save the axioms to ontology file?
manager.saveOntology(ontology);
I would suggest you checking your OWL file. If it can't parse the ontology it will throw an exception. You need to catch and read the exception. Most probably is a parsing problem. Your commands are totally fine.
Saving the ontology by your command is fine, but the best way according to OWL documentation is to "apply changes" after each change. Something like:
manager.applyChange(axiom);
Its an issue with the .owl file of yours. Use the link below to validate your ontology file
http://mowl-power.cs.man.ac.uk:8080/validator/

Resources