Protege 5.0.0 Classify button - protege

I am following a tutorial of Pizza Ontology and it says I need to select Classify button under Reasoner tab. But the version I am using, i.e. Protégé 5.0.0-beta-23, there is no such button under the Reasoner tab.
Do you know here I can find this function?

The tutorial is out of date on the instructions.
To reason on Protege 5, use the Reasoner menu, click on one of the available reasoners at the bottom of the menu (e.g., HermiT), then go again in the reasoner menu and select Start reasoner.

According to the vocabulary in section 4.9
Reasoners are sometimes called classifiers. Classification, however, is not the only inference service provided by reasoners ...
So, the button Classify... is simply a way to trigger or invoke the reasoner in order to
test whether or not one class is a subclass of another class or check
for inconsistencies.
To invoke the reasoner in Protégé 5, you can follow the instructions of Ignazio's post and you will see the output is quite similar to the description in the tutorial that is: ProbeInconsistentTopping turns to be red.

Related

UML Activity Diagram question, in terms of displaying buttons?

Not sure if this is the correct way to represent the flow between the "Home" page button, "Culture" page button and the "Song" page button (as all these buttons are present in all of the pages, where the user is able to click any of these buttons and perform certain activities)
This seems very messy as the arrows are pointing in all direction, which is why I am stuck on how to represent this.
UI of the application:
Why did you choose an activity diagram for this purpose? A state machine diagram is more appropriate. Clicking on a menu option transfers the application to a different state. You can use a superstate to model the transitions that can be made in any application state.
I would use an activity diagram to visualize the paths through a complex use case, not all UI actions.
See my paper 'Which UML models should we make', pages 12 and 13.

Orchard CMS. Add sub items from edit screen

I'm trying to develop my first module in Orchard and stuck with the following problem.
I have Box content type that contain Books. What I want to achieve is to allow user to add books from box edit screen in admin. The process is the following:
User selects a Box in admin and click edit.
In edit screen a list of books is displayed with buttons "Edit", "Delete" and "Add Book"
The user clicks "Add Book" button and add book screen appears.
The user enters required metadata and clicks "Save"
The user is redirected back to Box edit screen with new book added to the list.
I'm looking for advise on what is the best way to implement this.
There are several ways to do that, most of which don't require building a module.
You could use the updated list feature in the new Orchard 1.8. That does pretty much exactly what you describe.
You could use taxonomies, where the boxes are terms (terms have their own content type that you can extend). The workflow is kinda backwards with this, where you put books in boxes rather than picking from the box which books belong.
You could use a content picker field configured for multiple items, and constrained to the book content type.
You could build your own module, with a relationship between your types, as explained here: http://docs.orchardproject.net/Documentation/Creating-1-n-and-n-n-relations but except if this is a pure learning experience, there's little reason to go for that one, as the other three above are so much simpler, and don't require any coding.

A couple questions -- in regard to beginning Pharo

Using 2.0
Getting starting, confortable with Smalltalk, so tool questions I have not found readily in image or 'by Example' book (outdated).
Looking for entry field (not ready-to-use dialog box).
Like:
(TextMorph new) contents: '(enter name here)'; openInWorld.
"but this just opens text, would like to be editable"
Would like to construct [simple] canvas with say four fields e.g. entry, radio, dropdown, etc. examples available?
Anyone know where 'PreferencesBrowser' has been moved to (e.g. keyboard etc.).
Is there a 'Local senders of...' in regard to class browser selected method?
In order to construct a UI you could either use Polymorph or Spec.
For Polymorph examples try in a workspace:
UITheme exampleDialogs.
UITheme exampleBasicControls
For a Spec tutorial have a look at:
Bahman Movaqar, Spec - Part I: The Basics.
The Preferences Browser is replaced by the much nicer Settings Browser which can be found in WorldMenu > System > Settings.
And you can display a method’s senders in Nautilus (the new standard system browser) when you right click on a method name in the method list via the context menu.
You may want to read a Spec tutorial: http://www.bahmanm.com/blogs/spec-part-1-basics

JavaFX - toggle button with separator

The Java FX Scen Builder contains quite a special form of a toggle button. Several Buttons are visually concatenated and separated by a small vertical line:
I wonder how this is done. Does somebody have any idea?
It's an HBox of ToggleButton's all with the same ToggleGroup and custom css.
There is an example with source code of displaying a similar control group in the Ensemble sample application (which Ensemble terms a Pill Button). The Ensemble sample source license is BSD I think, so you should be able to use it in your app. Go to Ensemble, search for Pill in the Ensemble sample app, click on the "Save NetBeans Project..." button on the Pill Button sample and open the resultant project in NetBeans, full code, css and supporting image files will be included in the project.
As an easier alternative to custom CSS, the Controls FX project provides the Segmented Button control, that allow to visually group buttons just like OP asked.
It is BSD licensed so I guess safe to use in most cases. And the library has many other useful and well designed controls.
The segmented button looks like this :
Very straightforward to use :
ToggleButton tb1 = new Button("Red");
ToggleButton tb1 = new Button("Green");
ToggleButton tb1 = new Button("Blue");
SegmentedButton seg = new SegmentedButton();
seg.getButtons().addAll(tb1,tb2,tb3);
hbox.getChildren().add(seg);
It allows to specify if the selection should be mutually exclusive or not. For the second bwhaviour (non mutually exclusive) set the segmented buttons's group to null :
seg.setToggleGroup(null);
Source :
http://controlsfx.bitbucket.org/org/controlsfx/control/SegmentedButton.html

Android googledocs app component name

I am planning to provide menus for my app similar to the sliding menu shown in the below image when clicking on the button in the list view. Could you give me some pointers on, how it can be achieved. Is it SubMenu ?
http://static5.businessinsider.com/image/4db84baeccd1d58435080000/google-docs-for-android.jpg
I got it, the behavior or pattern name is QuikActions.
Useful introductory article for the beginners like me is available in the following link
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

Resources