Protege 3.2 RDF File - protege

I downloaded Protege 3.2 only to be able to run Sparql queries on RDF file now Protege 3.2 is not loading rdf file. When i try to open existing file, its says supported .pprj,.owl files but not rdf, any suggestion??
my issue was that I downloaded Protege 3.2 just to run have a good IDE to run sparql but I'm not seeing the interface in it

Protégé is an ontology editor in the first place. It works with Protégé project files and OWL ontology files.
If your RDF file contains an OWL ontology, you could change the file's extension to .owl and it will be visible in the Open Project dialog.

Related

How to make a list of file extensions read only in JetBrains IDEs?

I have a code generation tool (build_runner) that generates source code based on existing source files.
Every generated file is meant to be read-only.
How to tell JetBrains IDE to prevent me (as a developer) to edit those files? (or at least warn me a confirmation dialog before I actually edit the file)
Those files are identified with specific extensions
*.generated.dart
*.unwrapped.dart
Make your tool set file permissions on the files it generates: chmod 444.
Make your tool put the files in the generated folder like other libraries do.
Sample from Android Studio after setting the file permission on this file and trying to edit it:

gitbook editor missing content of file only show file

I downloaded gitbook editor. It is not the online version. Since I want to use the legacy version of gitbook editor, I downloaded it. When you open the gitbook editor usually has content of file and file. But for me, the content of the file is completely missing only has file column. I tried to reinstall gitbook editor. But the still persists.
The problem solved. i go to gitbook editor to change the summary file
since i rename the readme file to empty. in gitbook file you can still see readme
but in summary readme become its new name empty.. usually readme is called introduction on table of content automatically.. so you can rename introduction but never rename it as empty

How to preview word files through documents portlet like pdf files?

I have added the document portlet and to that a few pdf's and word files.
But when I click on pdf files they generate a preview, and the docx files don't. Why?
I want to preview the docx files also. Is there a method to achieve it?
Liferay makes use of OpenOffice/LibreOffice for deciphering MS-Office documents. You'll have to set up a connection to OpenOffice or LibreOffice (which has to run in server mode) in order to use it the way you want.

How to create or custom bibliography styles for to use with biblatex/Rstudio/knitr/Sweave

I am using biblatex with bibtex in backend (MikTex) for generating dynamic statistical reports with knitr (sweave) in Rstudio which is realy a great combination of tools.
I have with difficulty created my own bibliography style (.bst file) with custom-bib (for British Journal of Neurosurgery)
Unfortunately, .bst files doesnt work with biblatex and custom-bib is not a very pratical tool. More over knitr/Rstudio doesn't work with biber. I haven't try to create manually my own style as it seems quite complicated.
I will have to create more styles for publishing in medicals journals which have often their own bibliography style.
My Questions are:
How can I easily create or customize bibliography styles for to use with biblatex/Rstudio/knitr/Sweave ?
I have briefly and unsuccessfully try with Jabref, Bib-it.
The only practicale solution I have found is to create my own style with CSL Visual Editor and then secondary use it with Zotero/ Mendeley in a .odt document after having converted my Rsweave PDF document in a .odt file.
I search extensively the web without finding THE solution.
Any clue ?
Thanks

syntax highlight (.tmLanguage) in Sublime Text 3 for packages

I work on this plugin
Syntax highlight does not work with Sublime Text 3 when plugin is installed using package control.
Error loading syntax file "Sublime Text 3/Installed Packages/robot.tmLanguage": Unable to open Sublime Text 3/Installed Packages/robot.tmLanguage
The plugin is under Installed Packcages/Robot Framework Assistant.sublime-package, the file 'robot.tmLanguage' in inside Robot Framework Assistant.sublime-package archive.
Here is how I set paths
https://github.com/andriyko/sublime-robot-framework-assistant/blob/master/rfassistant/init.py
My question is similar to this thread, but in my case the plugin is installed as archive(.sublime-package) not folder with with files.
I am not sure that my path settings mentioned above are correct in python3.
How can I refer to tmLanguage file that is inside .sublime-package file?
Where should I put that file? It is totally confusing why does it work on Sublime Text 2 and Sublime Text 3(when installed into dir from github) but does not work when installed via Package Control.
So, how do I set path to tmLanguage file and where should I store it. Just want to clarify, that it works fine when plugin is installed from github zip file(because I put it's content into RobotFrameworkAssistant folder under Packages directory). It does not work when plugin is installed via Package Control.
Quick summary of my manual solution of adding custom .tmLanguage files based on others' suggestions:
Put the myLang.tmLanguage file into a folder with your desired syntax
name.
Zip the folder so that it's named myLang.zip
Rename the zip archive to myLang.sublime-package
Put the myLang.sublime-package into the Sublime 3 packages folder. It will now appear in the sublime syntax highlighting menu.
Based on ST3 docs, I can't seem to find an alternative to this manual method right now, but it will work.
Package control will likely do everything you need behind the scene
Do you need the content of the tmLanguage file? If so, you shouldn't be accessing it directly. Instead, you should be using sublime.load_resource(name), where name is something like Packages/Robot Framework Assistant/robot.tmLanguage. If you are just trying to set the file syntax, you should be using view.set_syntax_file(syntax_file), where syntax_file is like name for the resource. I did not look at your plugin in detail, so please clarify what you are trying to do if both of those answers are incorrect.
As a side note, based on that error, you would probably see issues in ST2 also. You are only looking at the root packages folder, not in your package.
In ST3, jps decided to make plugins runnable from .sublime-package files, rather than needing to be extracted. These files are simply renamed .zip files. Updates do need to be made if you are accessing resources within your plugin, but the API has been extended to support it.
This isn't a great list, but it covers some of the changes in ST3 from ST2.
http://www.sublimetext.com/docs/3/porting_guide.html
The issue seems to be solved. Please refer to this fix.
Why I had problems with syntax settings(.tmLanguage) in ST3?
Because it is totally confusing and not clear from ST3 docs where that file should be located.
(Even if it says that files lookup is continued in Packages directory if file was not found in Installed Packages).
There are two 'main' folders under Sublime Text 3 directory: Installed Packages and Packages.
When the plugin is installed using Package Control it goes into Installed Packages directory packed into archive file called like Robot Framework Assistant.sublime-package (which is actually ZIP file).
The robot.tmLanguage file (syntax file) is inside Robot Framework Assistant.sublime-package.
So, in few words, my question was: how to refer to that file (what path should be provided to view.set_syntax_file method)?
Unintuitive, but I should refer to non-existent path Packages/Robot Framework Assistant/robot.tmLanguage. Actually, in my case the Packages directory contains only Users folder. The only thing, that I can guess is that folder name should be the same as package name(Robot Framework Assistant in my case).

Resources