<?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_Name</id>
		<title>Pr4 UG h2 En Name - 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_Name"/>
		<link rel="alternate" type="text/html" href="https://protegewiki.stanford.edu/index.php?title=Pr4_UG_h2_En_Name&amp;action=history"/>
		<updated>2026-05-10T01:21:27Z</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_Name&amp;diff=8164&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_Name&amp;diff=8164&amp;oldid=prev"/>
				<updated>2010-07-27T20:55:59Z</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_Name --&amp;gt;&lt;br /&gt;
== Entity Naming ==&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;
{{#var:Pr4}}'s design is closely tied to the&lt;br /&gt;
[{{#var:wp}}/Web_Ontology_Language Web Ontology Language] (OWL),&lt;br /&gt;
a family of knowledge representation languages for authoring ontologies.&lt;br /&gt;
Because OWL is intended for use in the&lt;br /&gt;
[{{#var:wp}}/Semantic_Web Semantic Web], it uses&lt;br /&gt;
[{{#var:wp}}/Uniform_Resource_Identifier Uniform Resource Identifiers]&lt;br /&gt;
(URIs) to identify all entities (ie, named things).&lt;br /&gt;
&lt;br /&gt;
=== URI Basics ===&lt;br /&gt;
&lt;br /&gt;
[[{{#var:G}}URI|URI]]s are syntactically identical&lt;br /&gt;
to the universally familiar&lt;br /&gt;
[{{#var:wp}}/Uniform_Resource_Locator Uniform Resource Locators]&lt;br /&gt;
(URLs, aka web address).&lt;br /&gt;
So, a URI might specify a location (ie, name anchor)&lt;br /&gt;
on a web page hosted by a specified server:&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#Pizza&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
URIs differ sharply from URLS, however, in their use.&lt;br /&gt;
Whereas a URL's purpose is to allow access to a resource (eg, web page),&lt;br /&gt;
a URI's purpose is only to provide a unique name.&lt;br /&gt;
There is no requirement that any resource be available&lt;br /&gt;
at the named location.&lt;br /&gt;
For example, there might be no such web page at &amp;lt;tt&amp;gt;www.co-ode.org&amp;lt;/tt&amp;gt;,&lt;br /&gt;
let alone the name anchor &amp;lt;tt&amp;gt;Pizza&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
However, the URI's creators must still ensure&lt;br /&gt;
that no valid, conflicting URIs are created.&lt;br /&gt;
First, the domain (and any sub-domains) used in the URI&lt;br /&gt;
should be under the control of the URI's creators.&lt;br /&gt;
Then, as long as they refrain from creating conflicting URIs,&lt;br /&gt;
all should be well.&lt;br /&gt;
&lt;br /&gt;
It is not necessary that a URI correspond to a web page,&lt;br /&gt;
but creating such a page is a common and useful practice.&lt;br /&gt;
By establishing a policy that all URIs are backed by web pages,&lt;br /&gt;
an organization can ensure that internal conflicts will not occur.&lt;br /&gt;
In addition, the page can be used&lt;br /&gt;
to store contact information and other useful documentation.&lt;br /&gt;
&lt;br /&gt;
==== URI Fragments ====&lt;br /&gt;
&lt;br /&gt;
Once a globally-unique '''base URI''' (eg, page name) has been established,&lt;br /&gt;
any number of name anchors can be used with it.&lt;br /&gt;
So, &amp;lt;tt&amp;gt;Pizza&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;Topping&amp;lt;/tt&amp;gt;, and other locally-unique names&lt;br /&gt;
can be defined without fear of collisions.&lt;br /&gt;
&lt;br /&gt;
Protege takes advantage of this&lt;br /&gt;
in its [[Pr4_UG_h2_En_Render|Entity Rendering]] mechanism.&lt;br /&gt;
If the entire ontology is tied to the same base URI,&lt;br /&gt;
Protege is free to use (eg, display, accept) locally-unique '''fragments'''.&lt;br /&gt;
In fact, {{#var:Pr4}} broadens this notion somewhat:&lt;br /&gt;
if no name anchor is available,&lt;br /&gt;
the last path element may be used to define a fragment.&lt;br /&gt;
&lt;br /&gt;
=== Entity Basics ===&lt;br /&gt;
&lt;br /&gt;
==== Entity URI ====&lt;br /&gt;
&lt;br /&gt;
New entities will be given a URI starting with the base:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Active ontology (default)''' -&lt;br /&gt;
       the URI of the currently selected active ontology&lt;br /&gt;
       will always be used as the base URI.&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Specified URI''' -&lt;br /&gt;
       the user can specify a static URI&lt;br /&gt;
       that is always used as the base.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Followed by a separator character:&lt;br /&gt;
&lt;br /&gt;
* '''#''' or '''/'''&lt;br /&gt;
&lt;br /&gt;
And finally ending with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt; '''user supplied name (default)''' -&lt;br /&gt;
       the string typed in when a new entity is being created.&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''auto ID''' -&lt;br /&gt;
       generated automatically (see below).&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Entity label ====&lt;br /&gt;
&lt;br /&gt;
Selecting one or both of the '''create label''' options&lt;br /&gt;
generates an annotation on the new entities&lt;br /&gt;
containing the supplied name (or ID).&lt;br /&gt;
&lt;br /&gt;
Selection also enables control over which annotations get produced&lt;br /&gt;
when labels are being generated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Same as label renderer (default)''' -&lt;br /&gt;
       mimics the current behavior;&lt;br /&gt;
       the top preferred rendering annotation URI and language&lt;br /&gt;
       will always be used when generating a label&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Custom label''' -&lt;br /&gt;
       a static annotation URI and language&lt;br /&gt;
       can be set separately from the renderer preferences&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Auto ID ====&lt;br /&gt;
&lt;br /&gt;
Create a numerical identifier for new entities.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt;&lt;br /&gt;
''Auto ID'' must be selected&lt;br /&gt;
for at least one of the options in '''Entity name'''&lt;br /&gt;
for these options to be available.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Numeric (pseudo random) (default)''' -&lt;br /&gt;
       generates an number from the system time&lt;br /&gt;
       (so not currently random at all)&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Numeric (iterative)''' -&lt;br /&gt;
       generates a sequence of numbers,&lt;br /&gt;
       iterating in single steps from the first available&lt;br /&gt;
       (uniqueness only guaranteed for URI fragments)&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;ul&amp;gt;&lt;br /&gt;
      &amp;lt;li&amp;gt; '''Start''' - the lowest ID that will be allocated&lt;br /&gt;
      &amp;lt;li&amp;gt; '''End'''   - the highest ID that will be allocated&lt;br /&gt;
           (an error will be reported if this is superseded) -&lt;br /&gt;
           set to -1 for ''no maximum''&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Digit count''' -&lt;br /&gt;
       the length the numeric part of the IDs will be padded/trimmed to -&lt;br /&gt;
       this should always be made big enough&lt;br /&gt;
       to contain the range of IDs you will generate&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Prefix''' (recommended) -&lt;br /&gt;
       add a string to the start of the generated ID.&lt;br /&gt;
       Macros are available.&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;ul&amp;gt;&lt;br /&gt;
      &amp;lt;li&amp;gt; ''[type]'' - OWLClass, OWLObjectProperty, etc.&lt;br /&gt;
       &lt;br /&gt;
      &amp;lt;li&amp;gt; ''[user]'' - the name of the current user&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt; '''Suffix''' -&lt;br /&gt;
       add a string to the end of the generated ID.&lt;br /&gt;
       The same macros are available as above.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Converting URIs to labels ===&lt;br /&gt;
&lt;br /&gt;
Many ontologies have been developed with meaningful names in the URI fragment.&lt;br /&gt;
&lt;br /&gt;
If you wish to move these names into labels&lt;br /&gt;
and change the URIs into meaningless IDs,&lt;br /&gt;
there is a tool for doing this&lt;br /&gt;
under '''Refactor | Convert entity URIs to labels'''.&lt;br /&gt;
&lt;br /&gt;
Any entities that already have a reasonable label will not be changed&lt;br /&gt;
(this is useful if you change your preferences).&lt;br /&gt;
&lt;br /&gt;
This refactor uses '''your current new entities preferences'''&lt;br /&gt;
to determine what labels get generated and how the IDs are created.&lt;br /&gt;
&lt;br /&gt;
=== New entity creation preferences ===&lt;br /&gt;
&lt;br /&gt;
A new set of preferences has been created to separate off the renderer&lt;br /&gt;
from the creation of new entities.&lt;br /&gt;
&lt;br /&gt;
This gives much more flexibility and control&lt;br /&gt;
over what gets generated in our ontology.&lt;br /&gt;
&lt;br /&gt;
The pane can be found under '''File | Preferences... | New Entities'''.&lt;br /&gt;
When a new pane is first opened,&lt;br /&gt;
some of the advanced features will be disabled by default.&lt;br /&gt;
&lt;br /&gt;
[[Image:Pr4_UG_h2_New-entities-preferences.png|400px]]&lt;br /&gt;
&lt;br /&gt;
=== Translating ontologies ===&lt;br /&gt;
&lt;br /&gt;
Using a combination of the annotation renderer and label generation,&lt;br /&gt;
it is possible to develop and view an ontology in a given language.&lt;br /&gt;
&lt;br /&gt;
If you wish to provide multiple labels&lt;br /&gt;
for internationalization of your ontology,&lt;br /&gt;
a quick way to do this is using the&lt;br /&gt;
[Pr4_UG_rp_Tab_Matrix|Matrix Tab] plugin.&lt;br /&gt;
In particular, see&lt;br /&gt;
[{{#var:cpw}}/MatrixViews#Translation Instructions for setting up the translation].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>RichMorin</name></author>	</entry>

	</feed>