<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://protegewiki.stanford.edu/index.php?action=history&amp;feed=atom&amp;title=Pr4_UG_h2_En_Render</id>
		<title>Pr4 UG h2 En Render - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://protegewiki.stanford.edu/index.php?action=history&amp;feed=atom&amp;title=Pr4_UG_h2_En_Render"/>
		<link rel="alternate" type="text/html" href="https://protegewiki.stanford.edu/index.php?title=Pr4_UG_h2_En_Render&amp;action=history"/>
		<updated>2026-05-11T12:57:56Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://protegewiki.stanford.edu/index.php?title=Pr4_UG_h2_En_Render&amp;diff=8165&amp;oldid=prev</id>
		<title>RichMorin: Automated import of articles</title>
		<link rel="alternate" type="text/html" href="https://protegewiki.stanford.edu/index.php?title=Pr4_UG_h2_En_Render&amp;diff=8165&amp;oldid=prev"/>
				<updated>2010-07-27T20:56:11Z</updated>
		
		<summary type="html">&lt;p&gt;Automated import of articles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;!-- Pr4_UG_h2_En_Render --&amp;gt;&lt;br /&gt;
== Entity Rendering ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Pr4_UG_h2_TOC}}&amp;lt;div id='pr4_ug'&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because URIs will often be fairly long strings,&lt;br /&gt;
{{#var:Pr4}} uses a '''renderer''' to show a shortened form of the name.&lt;br /&gt;
(See [[Pr4_UG_h2_En_Name|entity naming]] for details.)&lt;br /&gt;
&lt;br /&gt;
The renderer can be changed in the preferences (see below)&lt;br /&gt;
and can show the fragment or ending part of the URI,&lt;br /&gt;
or can show a name provided by an annotation on the entity.&lt;br /&gt;
&lt;br /&gt;
So '''Pizza''' is actually just a rendering&lt;br /&gt;
of the URI http://www.co-ode.org/ontologies/pizza/pizza.owl#Pizza.&lt;br /&gt;
&lt;br /&gt;
The full URI can always be viewed&lt;br /&gt;
by hovering over an entity in its tree (the tooltip shows the full name).&lt;br /&gt;
Also, the &amp;quot;Refactor | Rename entity&amp;quot; menu item always works with the URI -&lt;br /&gt;
in fact, you can see the full URI&lt;br /&gt;
by just clicking on the checkbox in the rename dialog.&lt;br /&gt;
&lt;br /&gt;
=== Rendering preferences ===&lt;br /&gt;
&lt;br /&gt;
There are 4 options for the type of renderer you can select:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt; '''URI fragment''' -&lt;br /&gt;
       the part of the URI following the '''#''' or last '''/''' character&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''qnames''' (qualified name) -&lt;br /&gt;
       the fragment but with a [[#Prefixes...|prefix]] set&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''annotation values''' -&lt;br /&gt;
       uses the value of an entity annotation&lt;br /&gt;
       specified in [[#Annotations...|Annotations...]]&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''annotation values with prefixes''' -&lt;br /&gt;
       uses a combination of the [[#Annotations...|annotation]] value&lt;br /&gt;
       and the qname [[#Prefixes...|prefixes]]&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When using the 3rd and 4th option,&lt;br /&gt;
you will probably wish to also set the &amp;quot;new entities&amp;quot; preferences;&lt;br /&gt;
this creates labels when a new entity is created.&lt;br /&gt;
&lt;br /&gt;
[[Image:Pr4_UG_h2_Renderer-prefs.png|400px]]&lt;br /&gt;
&lt;br /&gt;
==== Prefixes... ====&lt;br /&gt;
&lt;br /&gt;
URIs are long.&lt;br /&gt;
A short form (prefix) can be specified&lt;br /&gt;
to represent the commonly used leftmost part of a URI.&lt;br /&gt;
&lt;br /&gt;
eg. if we have a prefix mapping:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;pizza = http://www.co-ode.org/ontologies/pizza/pizza.owl#&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then the following class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;http://www.co-ode.org/ontologies/pizza/pizza.owl#CheeseTopping&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
can be written much more concisely:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;pizza:CheeseTopping&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prefixes... option is available for both the '''qname'''&lt;br /&gt;
and the '''annotation values with prefixes''' renderers.&lt;br /&gt;
&lt;br /&gt;
The table that is brought up allows the user to add new prefixes by hand&lt;br /&gt;
or get P4 to generate them from the loaded ontologies.&lt;br /&gt;
Several prefixes are available as default.&lt;br /&gt;
&lt;br /&gt;
[[Image:Pr4_UG_h2_Prefix-mappings.png|400px]]&lt;br /&gt;
&lt;br /&gt;
==== Annotations... ====&lt;br /&gt;
&lt;br /&gt;
If you have set the renderer to be either of the annotations versions,&lt;br /&gt;
this option will be available.&lt;br /&gt;
&lt;br /&gt;
You can specify a list of which annotations are searched&lt;br /&gt;
for a rendering in order of preference.&lt;br /&gt;
In addition, for each given annotation,&lt;br /&gt;
you can specify a comma-separated list of languages&lt;br /&gt;
(again in order of preferences).&lt;br /&gt;
&lt;br /&gt;
eg the setup on the right will first try&lt;br /&gt;
to find a '''label''' annotation in English,&lt;br /&gt;
followed by one with no language set, followed by any language.&lt;br /&gt;
If it fails, then it will look for any '''prefLabel''' it can find.&lt;br /&gt;
&lt;br /&gt;
If the annotations renderer fails to find an appropriate label,&lt;br /&gt;
it will default to the fragment.&lt;br /&gt;
&lt;br /&gt;
[[Image:Pr4_UG_h2_Annotation-label-prefs.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>RichMorin</name></author>	</entry>

	</feed>