Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Created June 9, 2012 13:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kenwebb/2900943 to your computer and use it in GitHub Desktop.
Save kenwebb/2900943 to your computer and use it in GitHub Desktop.
Google Knowledge Graph
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/wb/ (C) Ken Webb Sat Jun 09 2012 09:22:12 GMT-0400 (EDT)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Google Knowledge Graph
Description:
Url: http://www.google.com/insidesearch/features/search/knowledge.html
InternalName:
YoutubeId:
Keywords:
My Notes
--------
::
"The next frontier in search is to understand real-world things and the relationships among them. So we're building a Knowledge Graph: a huge collection of the people, places and things in the world and how they're connected to one another."
Xholon is about ::
types of things
things
relationships among things, how things are connected to one another
See the editors further down on this page.
The extra thing that Xholon has is the ability to apply behaviors to these things, and allow them to dynamically interact with each other.
::
"Here are just some of the sources for this web of information:
* online resources like Wikipedia
* subject-specific resources like Weather Underground for weather information and the World Bank for economic statistics
* publicly available data from Freebase.com, a free and open database of over 24 million things, including movies, books, TV shows, celebrities, locations, companies, and more
* Google search data (used to measure the popularity of a subject and help decide what information people most want to see)"
Google mentions Freebase as an important source of information. Freebase is one of the search engines available with Xholon jvmEdition, to provide more information about nodes in models. I've also used Freebase and the similar dbpedia as sources of content for models. Freebase has an API. I get the impression that Freebase may be owned by Google?
See also ::
http://support.google.com/websearch/bin/answer.py?hl=en&answer=2620861
http://freebase.com/
http://www.programmableweb.com/
]]></Notes>
<script implName="lang:python:inline:"><![CDATA[
print "height = 12.34 m"
]]></script>
<script implName="lang:javascript:inline:"><![CDATA[
print("height = 56.78 meters\n");
]]></script>
<_-.XholonClass>
<!-- types of things -->
<PhysicalSystem/>
<Block/>
<!-- quantities -->
<Height superClass="Length"/>
</_-.XholonClass>
<xholonClassDetails>
<!-- relationships among things, how things are connected to one another -->
<Block>
<port name="height" connector="#xpointer(Height)"/>
</Block>
</xholonClassDetails>
<PhysicalSystem>
<!-- things -->
<Block>
<Height>0.1 m</Height>
</Block>
</PhysicalSystem>
<Blockbehavior implName="lang:python:inline:"><![CDATA[
# This works if pasted in as a last child of Block.
height.incVal(0.02)
print("Python wants something to do. Height:" + str(height))
]]></Blockbehavior>
<Blockbehavior implName="lang:javascript:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
print("JavaScript wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<Blockbehavior implName="lang:webEditionjs:inline:"><![CDATA[
this.bindPorts(this.parent());
this.height.incVal(0.02);
print("JavaScript wants something to do. Height:" + this.height.attr('val') + "\n");
]]></Blockbehavior>
<Blockbehavior implName="lang:bsh:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
System.out.print("Java/Beanshell wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<Blockbehavior implName="lang:jruby:inline:"><![CDATA[
require 'java'
# This works if pasted in as a last child of Block.
$height.incVal(0.02)
puts "Ruby wants something to do. Height: #{$height}"
]]></Blockbehavior>
<Blockbehavior implName="lang:groovy:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
System.out.print("Groovy wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Block</title>
<rect id="PhysicalSystem/Block" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>Height</title>
<rect id="PhysicalSystem/Block/Height" fill="#6AB06A" height="50" width="10" x="80" y="0"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment