An error occurred whilst loading the ontology at Unknown ontology - ontology

Opening the ontology keeps failing
I have been building an ontology using Protege 5.1 for the past few months, and suddenly encountered an issue when opening my ontology.
This error only occurred after I duplicated my .owl file into the same folder for back up purposes (e.g. naming the .owl file as ontology-name-mar-15.owl).
Error message
Clicking the red warning symbol at the upper right leads to the Protege logs, which included the following error message:
An error occurred whilst loading the ontology at Unknown ontology: OntologyID(OntologyIRI(HTTP_LINK_TO_MY_ONTOLOGY_URI) VersionIRI()). Cause: {}
As you can see, It did not contain any particular error message, just giving me an empty cause {} message, and my only clue to the problem was that the ontology loading failed, as it says that it was an Unknown ontology.
.owl file seems to be readable
I have worked for quite some time with my ontology, and do not want to repeat my work. Opening my .owl file on an online application for OWL Visualization shows that it is still readable and works.
I've come to the conclusion that Protege is the one having problems opening my ontology but am unsure how to fix it.

Delete the catalog.xml file.
What I did to address my problem was to delete the catalog-v001.xml file which was being edited/automatically updated whenever I opened my Protege app. It is found in the same folder as the .owl file.
Opening the .owl ontology file with Protege regenerated the catalog.xml file and it opened the file correctly.

Related

aapt2 Removing resource * without required default value

When building a Xamarin.Android project it is written in the output window that aapt2 has removed resources due to a missing default value.
Xamarin.Android.Aapt2.targets(160,3): warning APT2000: warn: removing resource com.companyname.demo_app:drawable/parking_slot without required default value.
The removed resource is part of a Xamarin.Android binding project and is also included in the aar-file under drawables and in the R.txt.
Because it is only a log-statement in the build output, the project builds and the app can be started. But when using one part of the binding-project the following error will be thrown:
Java.Lang.NoSuchFieldError: 'No static field parking_slot of type l in class Lcom/company/sample/R$drawable; or its superclasses (declaration of 'com.company.sample.R$drawable' appears in /data/app/com.companyname.demo_app-Ab0cDefG==/base.apk)'
What does cause the removal of the resource and how can it be prevented?
Edit 1:
The missing resource parking_slot is not in the drawable folder but in drawable-xhdpi-v4 for example. To check this I renamed the aar to zip and extracted it.
I then copied parking_slot it to the drawable folder, zipped and renamed it to aar again. Building is now without the aapt2 warning. Yet the app crashes again with:
Java.Lang.NoClassDefFoundError: 'Failed resolution of: Lcom/company/sample/R$drawable;'
I tested the aar-file with a native non-Xamarin app and no issue came to my attention which brings me to the conclusion that something might be broken with the way the Xamarin app is build.
Nevertheless the fix (or the workaround if you want) looks like this:
Rename aar to zip and unzip.
Search for the missing resource. In my case parking_slot
Copy the missing resource into your app-project
I think this works because of the way Androids fallback-system works.

Build failed - Check imports - Dart Angular Tutorial - angular_tour_of_heroes - part 2

While following tutorail - Angular-dart tutorial - Tour of Heroes - part 2
with using IntelliJ IDEA in Windows 10 while using chrome, I got following error(s) -
[SEVERE] build_web_compilers|entrypoint on web/main.dart (cached):
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
import 'package:angular_app/app_component.css.shim.dart' as import0; from angular_app|lib/app_component.template.dart at 12:1
[SEVERE] Failed after 1.3s
Serving web on http://localhost:53323
I have checked multiple times & I have replaced all - 5 files - namely
lib/app_component.css, lib/app_component.dart, lib/app_component.html, lib/src/hero.dart & lib/src/mock_heroes.dart from Review the app structure but I am still getting the above mentioned error & -
I could not find any app_component.template.dart
Nor could found any instance of imported package:angular_app/app_component.css.shim.dart or shim using IntelliJ Find in Path (Ctrl+Shift+F)
I have tried to delete build and rebuild.
I have also re-installed dart 2.1.0 using windows package manager & changed the location of dart-sdk accordingly in IntelliJ IDEA Settings/Dart, as for brief period I was getting dart-sdk error, but that is fixed.
This my first time asking question on stacksoverflow, but I have checked similar questions, could not resolve that issue.
the most likely reason for that build failure is due to the stylesUrls files not being found. This could be because the name in that array doesn't match the name in the file system or is not the expected place in the file system.
To confirm, I started from scratch, downloaded the quickstart-master.zip to get the project structure.
And followed the steps all the way through the step you were stuck on.
The only time I was able to generate that error while following the steps is when I added thestyleUrls: ['app_component.css'], to app_component.dart prior to creating the file.
I got the same:
[SEVERE] build_web_compilers|entrypoint on test/app_test.dart.browser_test.dart:
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
import 'package:angular_app/app_components.css.shim.dart' as import0; from angular_app|lib/app_component.template.dart at 12:1
Once i created the css file, the error went away and everything worked fine.
I completed the entire step you were up to and my app was working fine.
I then did as you did and copied each file from the step and replaced my work with it, still worked.
So confirm my hunch, i changed the name of the css file, and received the same error.
regarding app_component.template.dart that file is auto generated by dart and can be found in your project under .dart_tool/build/generated/angular_app/lib
I had a very similar problem. I ran webdev build and then webdev serve and it fixed it right up.

Consistency of DirectX models

Is there a way to check the consistency of a DirectX model (.x) ?
Whilst compiling .x files with XNA GameStudio 3.1 compilation is aborted with the following error message:
Error 2 Could not read the X file. The file is corrupt or invalid. Error code: D3DXFERR_PARSEERROR. C:\WFP\Browser\Content\m.x KiviBrowser
Some models compile correctly without any error/warning and some abort as described. The files of each model have several thousand lines.
I am creating the files in Googles SketchUp 8 where they all look fine and don't show any sign of corruption.
Suppose I have such a model my XNA compiler won't compile because their is an inconsistency somewhere in the file - how could I identify this in order to correct it ?

Compilation failed for data model at path after upgrading Xcode

After upgrading to Xcode 4.3.2 I have started getting the following error when i do a build:
Compilation failed for data model at path '/Users/Administrator/Library/Developer/Xcode/DerivedData/AppName-ffeggcadwojrwacrwosvadafamrk/Build/Products/Debug-iphoneos/Data.momd/Data.mom'
This was not happening before the upgrade and if i check out the same project on machine running the previous version of Xcode it works fine. No Errors.
I have found a couple of similar posts here and here but none of the answers have helped at all. From the error message the file path it gives doesn't contain a file so i'm guessing its a property somewhere that i need to change but i just can't find it.
Please help, thanks.
EDIT: On further investigation, i can stop it from erroring if i remove certain entities from the data model file, we are currently using a large pre created sqlite file to load data so i could recreate the data model file but that would mean recreating the sqlite which would be a bit of a pain. Anyone know why certain entities cause this?

Error importing files with BlackBerry Desktop Manager

I am packaging a BlackBerry application for desktop installation (i.e., .ALX and .COD files). However, I am having some problems:
I am seeing an error "There was an error importing files. No additional application can be found. Your file might contain applications that already exist in the application list, are not compatible for your device, or have errors".
What could be causing the problem?
Please look at to the image

Resources