<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wandora.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wandora.org/w/index.php?action=history&amp;feed=atom&amp;title=AngularJS_topic_map_browser</id>
		<title>AngularJS topic map browser - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wandora.org/w/index.php?action=history&amp;feed=atom&amp;title=AngularJS_topic_map_browser"/>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=AngularJS_topic_map_browser&amp;action=history"/>
		<updated>2026-04-18T11:50:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>http://wandora.org/w/index.php?title=AngularJS_topic_map_browser&amp;diff=10829&amp;oldid=prev</id>
		<title>Eero at 13:49, 23 September 2013</title>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=AngularJS_topic_map_browser&amp;diff=10829&amp;oldid=prev"/>
				<updated>2013-09-23T13:49:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:49, 23 September 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Installation and running==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Installation and running==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The app is contained in the &amp;lt;code&amp;gt;app&amp;lt;/code&amp;gt; subfolder, and is run by opening &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;`&lt;/del&gt;index.html&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;` &lt;/del&gt;in a browser. The app relies heavily on ajax requests which blocked by default in Chrome when opening pages from the filesystem. As a workaround the provided Node.js server should be run with &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;`&lt;/del&gt;node scripts/web-server.js&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;`&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The app is contained in the &amp;lt;code&amp;gt;app&amp;lt;/code&amp;gt; subfolder, and is run by opening &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;index.html&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;in a browser. The app relies heavily on ajax requests which blocked by default in Chrome when opening pages from the filesystem. As a workaround the provided Node.js server should be run with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;node scripts/web-server.js&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The app is then accsessible in&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The app is then accsessible in&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Eero</name></author>	</entry>

	<entry>
		<id>http://wandora.org/w/index.php?title=AngularJS_topic_map_browser&amp;diff=10828&amp;oldid=prev</id>
		<title>Eero: Created page with &quot;The AngularJS Topic Map browser is a JTM based [http://angularjs.org/ AngularJS] app designed to provide a simple Topic Map browser for the user to navigate. The app loads a T...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=AngularJS_topic_map_browser&amp;diff=10828&amp;oldid=prev"/>
				<updated>2013-09-23T13:48:55Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The AngularJS Topic Map browser is a JTM based [http://angularjs.org/ AngularJS] app designed to provide a simple Topic Map browser for the user to navigate. The app loads a T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The AngularJS Topic Map browser is a JTM based [http://angularjs.org/ AngularJS] app designed to provide a simple Topic Map browser for the user to navigate. The app loads a Topic Map presented in a simple JTM file and presents a simple UI built on [http://getbootstrap.com/2.3.2/ Twitter Bootstap]. Thus no instance of a  [http://www.wandora.org/wiki/JTM_topic_map_service_module JTM service] is required for it's use.&lt;br /&gt;
&lt;br /&gt;
==Installation and running==&lt;br /&gt;
&lt;br /&gt;
The app is contained in the &amp;lt;code&amp;gt;app&amp;lt;/code&amp;gt; subfolder, and is run by opening `index.html` in a browser. The app relies heavily on ajax requests which blocked by default in Chrome when opening pages from the filesystem. As a workaround the provided Node.js server should be run with `node scripts/web-server.js`.&lt;br /&gt;
&lt;br /&gt;
The app is then accsessible in&lt;br /&gt;
 localhost:8000/app/index.html&lt;br /&gt;
&lt;br /&gt;
The project also supports building a stripped down distribution version of the app using Node.js and Grunt.&lt;br /&gt;
&lt;br /&gt;
* The required dependencies are installed with &amp;lt;code&amp;gt;npm install -g grunt-cli&amp;lt;/code&amp;gt; for a global installation of the Grunt command line interface&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;npm install&amp;lt;/code&amp;gt; for the remaining dependencies.&lt;br /&gt;
&lt;br /&gt;
* The compilation process is finally run with &amp;lt;code&amp;gt;grunt dist&amp;lt;/code&amp;gt; which copies and compiles the required files to the build directory.&lt;br /&gt;
&lt;br /&gt;
==Configuration and customization==&lt;br /&gt;
&lt;br /&gt;
The main configuration and translation is stored in &amp;lt;code&amp;gt;config.json&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;dataUrl&amp;lt;/code&amp;gt; is used to specify the JTM file as a relative path.&lt;br /&gt;
* &amp;lt;code&amp;gt;sis&amp;lt;/code&amp;gt; is used to specify special topics as type-instance and super-sub&lt;br /&gt;
&lt;br /&gt;
associations and players. &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; is the root topic at the root of the subclass-superclass association tree.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;langs&amp;lt;/code&amp;gt; is used to specify the languages topics used in the app&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;defaultLang&amp;lt;/code&amp;gt; is used to specify the default langauge&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;translation&amp;lt;/code&amp;gt; is used to translate UI text elements to other languages.&lt;br /&gt;
&lt;br /&gt;
A translation object should have the text literal written in the template files as one key-value-pair and it's translations as their respective key-value-pairs.&lt;br /&gt;
&lt;br /&gt;
Further customization requires understaning of the Angular MVC framework.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
Run the server with &amp;lt;code&amp;gt;node scripts/web-server.js&amp;lt;/code&amp;gt; from the app directory&lt;br /&gt;
&lt;br /&gt;
[[File:angular1.png |500px ]]&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;code&amp;gt;localhost:8000/app/index.html&amp;lt;/code&amp;gt; to view the base topic specified in the &amp;lt;code&amp;gt;config.json&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
[[File:angular2.png |500px ]]&lt;br /&gt;
&lt;br /&gt;
* Browse the '''Art of Noise Bibliography''' topic by clicking on it. Note Angular's routing system remembering the topic si in the URL fragment making it possible to bookmark the page and browse the Topic Map with back and forward navigtion.&lt;br /&gt;
* Change the language from the menu at the top. Scopes available as languages in the browser are specified in &amp;lt;code&amp;gt;config.json&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:angular3.png |500px ]]&lt;br /&gt;
&lt;br /&gt;
* Browse the class and instance relations in the side bar. This is similar to the side bar in Wandora. Both relations and roles are also specified in &amp;lt;code&amp;gt;config.json&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Filter the track instances using the filter field provided by the app.&lt;br /&gt;
&lt;br /&gt;
[[File:angular4.png |500px ]]&lt;br /&gt;
&lt;br /&gt;
==The build process==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;app&amp;lt;/code&amp;gt; folder contains a version of the app suitable for development and testing.&lt;br /&gt;
&lt;br /&gt;
[[File:angular5.png |500px ]]&lt;br /&gt;
&lt;br /&gt;
It's usually useful to create a minified distribution package of the app for deployment purposes. The project folder includes a Gruntfile for producing this. We install the project dependecies for node as instructed in [[#Installation_and_running | Installation and running]]&lt;br /&gt;
&lt;br /&gt;
[[File:angular7.png |500px ]]&lt;br /&gt;
&lt;br /&gt;
We can now server the project using the &amp;lt;code&amp;gt;web-server.js&amp;lt;/code&amp;gt; script and visit the distribution app at &amp;lt;code&amp;gt;localhost:8000/build/index.html&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:angular8.png |500px ]]&lt;/div&gt;</summary>
		<author><name>Eero</name></author>	</entry>

	</feed>