Images on OntoGraf canvas in Protégé - owl

Is there any way to view images in OntoGraf instead of names (labels)? I mean how to view classes' other annotation properties in OntoGraf instead of rdfs:label (including images).
I tried to find an other plugin for this or a hidden feature of OntoGraf, but I did not find anything other than use schema:image (foaf:depicts, foaf:thumbnail) annotation property

Related

Add custom shape object properties based on svg in react-three-fiber

I'm trying to render a map of a small room based on the svg image I have, just as shown in here. I can see every shape being listed and rendered properly, but since I want those objects to be interactive, I need to somehow relate them to the ids I have in the db. I'm aware that svgs can contain data-* properties, but is it possible to make them included in the objects listed? For example my custom data-id?

Is there a way to name instances in the Property Explorer?

Visual Studio provides a helpful tool window, which allows investigating values of WPF elements in the runtime:
Is there a way to name instances of eg. styles so that I can identify, which specific style got applied to a property of some element?
I'd expect something like System.Windows.Style (name: Abcd)
I tried adding x:Name and x:Uid, but neither worked in the expected way.

Specify a design-time image source?

I am using SharpVectors to display SVG images in my WPF project.
One way to do this is to specify the SvgImage markup extension for the image source, such as:
<Image Source="{svgc:SvgImage Source=Images/test.svg}"/>
This works great at runtime.
However at design-time the image shows up blank. Is there any way to specify a design-time-only image? Ideally it would be the same image used at runtime, but even an alternative placeholder image would be better than nothing. That way at least the relative positions of objects would be clear, etc.
Note - although there are other ways of displaying an SVG image (namely, the SvgViewBox object) there are cases where you can only do it by specifying an image source. Namely, the LargeImageSource or SmallImageSource attributes of WPF Ribbon controls.
Providing the same answer here just for the records!
Please try using the newly added property; AppName, which is used to try and resolve the URI of the resource file at design-time.
See the samples for the SvgImage and newly added SvgImageConverter, especially the toolbar demo using the SVG icons.
https://github.com/ElinamLLC/SharpVectors/tree/master/TutorialSamples/ControlSamplesWpf
SvgImageConverter provides binding support, if you need it unlike the SvgImage.

layoutAttributesForItemAtIndexPath - when is it called?

I am currently playing around with some demo projects for the new UICollectionView.
Most of this demos override layoutAttributesForItemAtIndexPath in there subclasses. But the method is never called in one of that example.
From the Apple docs i know that i have to override layoutAttributesForItemAtIndexPath
I cannot not figure out in which situation this method is called.
Is this method just for special cases?
Maybe you can find out in Apple doc, Subclasses must override both layoutAttributesForElementsInRect and layoutAttributesForItemAtIndexPath
read this:
layoutAttributesForElementsInRect:
Returns the layout attributes for all of the cells and views in the specified rectangle.
- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
Parameters
rect
The rectangle (specified in the collection view’s coordinate system) containing the target views.
Return Value
An array of UICollectionViewLayoutAttributes objects representing the layout information for the cells and views. The default implementation returns nil.
Discussion
Subclasses must override this method and use it to return layout information for all items whose view intersects the specified rectangle. Your implementation should return attributes for all visual elements, including cells, supplementary views, and decoration views.
When creating the layout attributes, always create an attributes object that represents the correct element type (cell, supplementary, or decoration). The collection view differentiates between attributes for each type and uses that information to make decisions about which views to create and how to manage them.
Availability
Available in iOS 6.0 and later.
Declared In
UICollectionViewLayout.h

How can I programmatically access System.Windows.ResourceDictionary?

I am trying to implement Load/Save annotations (complex children, not ink strokes, like an editable text box) of an InkCanvas and when I use XamlReader.Load I get an exception where it is trying to load something into the dictionary that is already there. I believe I need to access the dictionary and either check to see if something is already there or just clear it out.
My question is, how can I access the resource dictionary programmatically or is there a better way to handle this?
All FrameworkElement derived classes include a Resources property you can use to access the resource dictionary for that element. You can also directly access Application.Resources if the resource is defined at the Application level.

Resources