How to merge two ontologies in Protege - sparql

I'm new to using Protege. I'm using two small owl files, both containing one super class and two sub classes. Both the ontologies are exactly same except for the class names. I imported both the files into a new file and merged one ontology to the other using refactor menu. I used "equivalent to" to map the corresponding classes of the ontologies and did the same for the properties. I want the SPARQL queries to fetch results from both the ontologies. How should I proceed?

There is an option Refactor->Merge ontologies, may be helpful?

Related

Create owl file from csv file

Currently I am using Protege application to add classes, sub classes for the added classes and label for each subclass/class. I have many classes and I am really fed up adding many of these manually. I have got all of these classes, sub-classes and labels in a csv file. Each row contains these three things- class,sub-class and label separated by comma.
I would like to create OWL file with all these classes. Is there any way I could automate the process?
This use case seems pretty close to what a tool named Populous does. See its description here
Populous presents users with a table based form in which columns are constrained to take values from particular ontologies. Populated tables are mapped to patterns that can then be used to automatically generate the ontology's content. These forms can be exported as spreadsheets, providing an interface that is much more familiar to many biologists.
The table/spreadsheet format is equivalent to CSV, so easy to convert. The project is Open Source, so easy to reuse the code to achieve your target.
See http://www.populous.org.uk/ for more details.

Basic questions about ontology manipulation

My questions are probably very basic, but they are fundamental for me since they put all puzzles together.
1) As I understand, ontologies (*.owl) might be either "empty" (without data, i,e, without individuals) or they may involve both the relations between classes and linked data. Is it correct?
2) I downloaded a famous gene_ontology.owl, which seems to contain both data and meta-structure. How can I start creating SPARQL queries? The queries always specify endpoints, classes names, etc. e.g. PREFIX dcore: <http://purl.org/dc/elements/1.1/>. Where do I get all these titles for particular ontology? Should I try to figure out all the titles using e.g. Protégé or is there any "automatic" way to create queries?

Importing ontology from Protege to Sesame

I have created an ontology where I've imported a couple of external ontologies and mapped some of my classes to those in them. When I open the ontology in Protege, I see the classes that I created as well as the mapping to other ontologies.
However, when I open the ontology in a text editor or export it to Sesame, I only see the classes I created or mapped to those in existing ontologies. The ones I haven't touched do not show up. I need all the classes from the imported ontologies for my application. How do I get them to show up in my owl file?
UPDATE1
When I import these ontologies directly into Sesame, all the triples show up. This is in contrast to the case of importing these ontologies to Protege and then uploading the file to Sesame. In the latter case, the classes I haven't modified/mapped to those in my ontology don't show up.
What explains the difference in the behavior?
These are the ontologies I am concerned with:
http://svn.code.sf.net/p/vaccineontology/code/trunk/src/ontology/VO.owl
http://ovae.googlecode.com/svn/trunk/src/ontology/ovae.owl

Linking my own ontology with DBPedia's populated ontology

I have this assignment where I have created an rdfs ontology with artists, their songs, their genres, etc using Protégé and populated it with some data. I am now supposed to connect my ontology and it's data with DBPedia's, so that I can SPARQL for my artists' birthdate. I have successfully imported http://dbpedia.org/ontology/ and http://dbpedia.org/property/ into protégé, but I can't find a way to import the data (http://dbpedia.org/resource/).
Can anyone point me in the right direction?
DBpedia datasets are stored and available for download here (http://wiki.dbpedia.org/Downloads2015-04#h96554-1) but Protégé isn't going to perform well (or at all) when you load a dataset of this size into it.
You may be better downloading various entities by hand such as - http://dbpedia.org/data/Blink-182.ntriples and then loading into Protégé. You can go to any DBPedia page. E.G. http://dbpedia.org/page/Ras_Barker and find download links at the bottom.

Is it possible to load multiple ontologies with Jena?

I am new with Jena and I am implementing an application in order to manipulate RDF data. I have already implemented some basic fonctions to see Classes, Properties and other stuffs.
And I wonder if it could be possible to load multiple ontologies with Jena and then have some SPARQL queries on those. (I already know that is possible because Protégé does it).
Thank's for your interest.
I'm open for any questions or precision.