I'm using Protégé 4.3 and I want to save the results of the reasoner to the ontology file. When I stopped the reasoner, all results disappeared.
How can I save results?
In Protégé, use File → Export inferred axioms as ontology…
That should do what you're looking for.
Related
I am working on a large ontology through Protege (5.5.0). Whenever
I try to add the SPARQL Query tab to my viewport my ontology, it only gives a blank interface under the SPARQL query tab. And only what it says is the following lines.
“An error occurred whilst creating the view
BufferAllocationException:
Not enough memory to allocate buffers to grow from 0 -> 32 element.”`
I tried to increase the heap size in the JAVA control panel. Screenshot is given below.
But the problem is same as before.
I increasaed the heap size as follows
Somewhere I found a solution to this problem by updating the owlApi RDF library but I didn't find this plugin in the list of plugins.
Can you please refer me to a solution?
It would be a great favour.
I tried to have a SPARQL query tab on Protege. There should be a proper entry field there but the whole window of SPARQL query is blank as follows.
SPARQL query tab
The heap size should be changed in the Protege boot script - this would be a fine named run.sh or run.bat, depending on your OS. The change you show might not take effect, if Protege is running with a different VM than the one you set the parameter for.
OWLAPI is not a plugin for Protege, it's a library Protege relies on and it's shipped in the /bundles folder. To update to a newer build, you can download the maven artifact for owlapi osgidistribution and replace the file in the bundles folder with the new file. However, I don't believe it's related to the problem you describe.
The GraphDB import settings has an option for 'Target graphs' with 3 possible values:
from data
the default graph
a named graph (to be specified)
There is a tooltip documentation that says:
Data is imported into one or more graphs. Some RDF formats may specify graphs, while others do not support that. The latter are treated as if they specify the default graph.
Which RDF formats does GraphDB recognizes for specifying a graph?
In particular, is Owl serialized in RDF/XML one such format?
When I import a zip file of multiple *.owl files in RDF/XML format, I get all the triples loaded into the default graph even though I chose the 'from data' import option.
Can someone explain me how to import ontologies into GraphDB with graphs from the data?
GraphDB is built on top of RDF4J and supports the same formats as it does.
.owl files do not support named graphs, unfortunately. This is by design, rather than a GraphDB-specific behaviour.
As for the formats that do support named graphs, and can be imported into RDF4J/GraphDB, here's a list:
TriX - XML-based RDF serialization. File extensions .xml or .trix.
TriG - extension on Turtle. File extension .trig.
TriG* - TriG with RDF-star support. File extension .trigs.
Binary RDF - for binary RDF documents. File extension .brf.
N-Quads - a line-based syntax for triples, with context support. File extension .nq.
JSON-LD - JSON serialization for linked data. File extension .jsonld.
RDF/JSON - another JSON serialization. File extension .rj.
Given that you have .owl files, which are serialized with XML, I'd suggest that the easiest thing would be to conver them to TriX and go from there.
I am using tensorflow object detection API to detect objects. It is working fine in my windows system. How can I make changes in it to only detect mentioned objects, for example, I only want to detect humans and not all the objects.
As per the 1st comment in this answer, I have checked the visualization file but didn't find anything related to categories of objects. Then I looked into category_util.py and found out that there is csv file from which all the categories are being loaded but didnt found this csv file in the project. Can anyone please point me into the right direction. Thanks
I assume from your question, that you did not finetune your model yourself, but just used a pretrained one from the model zoo!?
In this case, I think the model already detect humans AND other objects and you want these other objects to disappear!? For doing so, you just have to change your label_map.pbtxt by deleting all classes which you don't need. If you are not sure where to find this file have a look into your .config file and search for label_map_path="PATH".
For example, my ontology have
ontology IRI: example.com/onto1
and
current version IRI: example.com/onto1/1.0
What IRI should I use to import this ontology to new one?
I read the sections
3.1 Ontology IRI and Version IRI
3.3 Versioning of OWL 2 Ontologies
Of https://www.w3.org/TR/2009/REC-owl2-syntax-20091027 but have not yet grasped this issue.
And connected question: which URI should be specified as xmlns prefix in owl file in RDF/XML syntax?
The ontology IRI should be used to import an ontology when you do not care about the version - and you wish to use the latest version of an ontology. The version IRI will give you access to a specific version, if you, for example, need to refer to a particular state of the ontology (e.g., need to avoid the latest version because of undesired or erroneous inferences).
is there any tool that can generate RDF document from OWL file ?
Jena (http://jena.sourceforge.net/ ) will do this.
Also look at OWLAPI (http://owlapi.sourceforge.net/ ) though personally I find it very awkward