ontologies | Never manage a namespace object map | Dataset library
kandi X-RAY | ontologies Summary
kandi X-RAY | ontologies Summary
Never manage a namespace object map again, scrap typo's for well-known ontologies. Like DefinitelyTyped, but for ontologies.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ontologies
ontologies Key Features
ontologies Examples and Code Snippets
Community Discussions
Trending Discussions on ontologies
QUESTION
I have downloaded the corpus of articles Aminar DBLP Version 11. The corpus is a huge text file (12GB) which each line is a self-contained JSON string:
...ANSWER
Answered 2022-Mar-23 at 13:51Reading the file without providing the schema is taking longer time. I tried to split the huge file in smaller chunks to understand the schema and it failed with Found duplicate column(s) in the data schema:
I tried the below approach on the same dataset with provided schema and it worked.
QUESTION
I have built a small ontology in Protege to test punning with a SPARQL query. The Ontology is:
...ANSWER
Answered 2022-Mar-11 at 14:06Harry is a GE, from your assertions. GE is both a class and an individual; so GE appears in other statements as well, and that's multiplying the answers you're seeing. It's analogous as joining across tables where the join value matches multiple rows in one of the tables involved.
QUESTION
I'm developing a Java application using owl-api. For testing I want to use a TestDataProvider to provide test data for unit-testing.
I'm using version 5.0.0 because the tutorial I read is using this version too. I plan to update later.
...ANSWER
Answered 2022-Feb-19 at 15:13By default, an ontology is saved in the same place it was loaded from - in this case it was loaded from a remote IRI, and there's currently no support for saving an ontology directly to a remote URL.
You can work around this by specifying a target for your saveOntology()
call, e.g.,
QUESTION
I need to develop an ontology in computational biochemistry and molecular dynamics. For this, I have collected the terms that is going to be used and attempted to reuse ontologies by searching the terms on ontology search service, such as EBI-OLS. Some terms are very relevant to import/reuse, however, the ontology itself is intended for a more specific domain, such as National Cancer Institute Thesaurus (which has 171,081 classes). Other than that, there are other 10 source ontologies that I could potentially reuse. Some of them are also huge, such as EDAM ontology.
Is it okay to reuse ontology that seemingly intended for a more specific domain, such as cancer? We will use the ontology for a more generic use in life science, not only cancer-related domain.
Is there any general rule of thumb on which of those 10-ish ontologies that are suitable for reuse? (e.g., the paper describing that ontology should be cited by at least n number of papers, or it should be compatible with Open Biological and Biomedical Ontology (OBO) Foundry principles, or it should be backed by a well-known institution and still maintained).
How to decide the sweet spot on the number of ontology sources one can based on? While we can reuse as much available terms as we can (from many ontology sources, especially in life science domain), there is a concern that it would make the resulting knowledge graph representation much more complex.
Thank you for your answers.
...ANSWER
Answered 2022-Feb-02 at 16:04Answers to your questions:
I would say yes, assuming the terms that you intent to use are indeed a match for your use case. I.e., if there is a term that you are interested in using, but say its definition or the synonyms do not match your needs, then I will probably consider not using the term.
Yes, there are. I really recommend reading the paper Ten Simple Rules for Selecting a Bio-ontology and the OBO Tutorial.
Try to keep the number of ontologies you want to use as small as is sensible (that is the smallest set of ontologies that are well aligned with the needs of your use case). The reason for this is that you will want to engage with the designers of the ontologies you use to extend and amend these ontologies for your use case. The more ontologies you use, the chances are that you will need to communicate with a larger community to affect change for your use case. This may increase development times. However, using an ontology that is not well aligned with your use case will also increase communication and timelines. Thus, the reason for keeping the number of ontologies as small as is sensible.
As for your concern regarding importing large ontologies into your ontology, the way this is dealt with is to extract only the terms you are interested using ROBOT and then to import the extracted ontology into your own ontology.
In general, I will really strongly recommend reaching out to the OBO Foundry. They have developed life science related ontologies for a number of years. Working with them you are likely to avoid many of the typical problems people run into when they start designing ontologies.
I have also written up some general guidelines from my perspective wrt choosing biological ontologies here.
QUESTION
How would I decode this json file with JSONDecoder().decode
...ANSWER
Answered 2022-Jan-31 at 08:02As mentioned in the comments you can use a quick parser, however
you need to understand why is this happening, the issue here is that you're passing [String: [String: [String: String]]]
which is not valid skeleton for this key you can start breaking down each layer alone to understand first level for example [String, Any]
and then start exporting each key and decode that stand alone, using the above link your models should be something like that.
QUESTION
I want to programmatically get explanations for inferred axioms in consistent ontologies, in a similar manner that one can do in the Protégé UI. I cannot find any straightforward way. I have found the owlexplanation repo, but I cannot for the life of me solve the dependency issues to set up the owlexplanation
environment. I have also browsed the javadoc of owlapi regarding explanations (to avoid the other repo altogether), but I don't see anything useful beyond what I can already see browsing the Java source code.
I have thought of simply negating the inferred axiom, to get explanations through inconsistencies, but I would prefer something cleaner, and I am not sure this approach is correct anyway.
Other (possibly) useful context:
- I had used some Java years ago, but I now primarily use Python (I try to use OWL API with JPype and OWL in general with Owlready2).
- I am using HermiT reasoner (again through JPype) (according to build.xml file, latest stable version 1.3.8).
- I have managed to get explanations for unsatisfiability and inconsistency in my setup, without
owlexplanation
, following this example from the HermiT source code. - I fell in the rabbit hole wanting to make a usable
.jar
file forowlexplanation
, in order to add it in my JPype classpath. My plan went sideways when I couldn't get the Java project to build in the first place. - I am using Intellij IDE.
I would appreciate any insight or tips.
UPDATE Jan 6, 2022:
I decided to try once more with the owlexplanation
code with a clean head so here is where I am at:
- Downloaded the source code from github and extracted the zip.
- Started IntelliJ and instead from "Creating a project from Existing sources", I clicked "Open" and selected the extracted directory.
- I built the project and it did successfully.
- From Maven tools, I run clean, validate, compile and test succesfully.
- If I run "package" Maven action, it throws as error that "The environment variable JAVA_HOME is not correctly set". The thing is that if I go File>Project Structure, I see that SDK is set to 11, it's not empty.
- Additionally, from the
pom.xml
file I get these problems:Plugin 'org.apache.maven.plugins:maven-gpg-plugin:1.5' not found
Plugin 'org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6' not found
UPDATE Jan 8, 2022: (Trying @Ignazio's answer)
I created a new IntelliJ project, and added the Maven dependencies @Ignazio mentioned (plus some others like slf4j
etc) and I got a working example (I think). Moving to my main project (using JPype), I had to manually download some .jars to include in the classpath (as maven can't be used here). These are the ones downloaded so far:
ANSWER
Answered 2022-Jan-07 at 20:52You're not just using the projects but actually building them from scratch, which requires more setup than using the published artifacts.
Shortcut that uses Maven available jars (via Maven Central, although other public repositories should do just as well)
Java code:
QUESTION
I'm using wordcloud==1.8.1
to render a plot with multiple wordclouds,
each one beeing a bar in a bar chart.
Basically just adding some subplots like this:
...ANSWER
Answered 2021-Dec-22 at 23:20I was able to get the desired result for the toy example but I'm not 100 % sure if this holds true for larger sets when the image gets more crowded and it will most probably fail for the vertical bars in your example (maybe setting prefer_horizontal
to a low value of say 0.1
may help in this case, rotating most of the words).
The following has to be paid attention to:
- set
relative_scaling
to1
so that the font size is directly proportional to the frequency (per document). - make the images wide enough so that the largest word will fit in its entire length into the image (otherwise is may get shrunk)
- set
font_step
to0
to prevent font decreasing if the word doesn't fit at the first try (see source)
The following example illustrates this (colors and word positions are chosen randomly, so your result will be different, but the sizes and size ratios should be the same as in the example output) :
QUESTION
my goal is to work on a project using docker without having to constantly rebuild my whole project each time I modify a file a little bit:
The file bellow (not complete) has 2 state, an already updated version that I will call
Version_0 which looks like this :
ANSWER
Answered 2021-Nov-04 at 09:08Try doing docker-compose down
followed by docker-compose up --build
.
It seems that removing the container first fixes some hidden cache problems.
QUESTION
I've had some issues at implementing built-in jena-fuseki reasoner, I could make it work but it would not prevent me from adding incorrect triples. So I wanted to add Openllet reasoner to my jena-fuseki server.
But I can't figure how to add openllet jar to my Docker image and make it work, I've run into many java dependances issues. To add context, my docker-compose looks like that :
...ANSWER
Answered 2021-Nov-02 at 13:47I couldn't find anything from google but I find this on github : The answer
I followed his step by downloading the jar into my server/openllet and extracted the file so I could copy them in the new extra folder with all dependencies
Here is my Dockerfile :
QUESTION
I embedded the ontology and now I have the URI with the embedded number. So I could not find a solution. Here is my data on how it looks.
...ANSWER
Answered 2021-Oct-14 at 07:26My approach was correct. Here I just change the index range.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ontologies
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page