ideas for mini-projects
by Alexandre Bergel
Hi!
In March we will start our lecture about Pharo and Moose. We will give to each student one or two small projects to work on during the semester. We went through the site http://topics.pharo.org to have some ideas.
Is there anything you would like to see that is not on the topics website?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
9 years, 2 months
Re: ideas for mini-projects
by Stephan Eggermont
Tiago Alves PhD Thesis has some more details:
Benchmark-based Software Product Quality Evaluation
(easy to google)
Stephan
9 years, 2 months
CodeCity
by Richard Wettel
Dear all
After the short preview at the last Moose Dojo, I am happy to let you know
that the first version of the brand new CodeCity is out.
CodeCity is a 3D visualization engineased on a city metaphor, which enables
us to depict software systems as cities. If you want to know more about
this approach, have a look here:
http://www.inf.usi.ch/phd/wettel/codecity.html
I have now implemented the basic functionality of CodeCity in Pharo and
integrated it with Moose. Here is a code city of ArgoUML in the new
CodeCity:
[image: Inline image 1]
To install CodeCity, you need to run this code in a Moose image (setting
Moose as a prerequisite is on my TODO list):
Gofer new smalltalkhubUser: 'RichardWettel' project: 'CodeCity';
configuration; load. (Smalltalk at: #ConfigurationOfCodeCity)
loadDevelopment
You can also get the latest successful build from:
http://ci.inria.fr/moose/job/codecity/lastSuccessfulBuild/artifact/codeci...
The new CodeCity does not provide a configuration UI, but it relies on
scripting. A script to obtain a city visualization of a Moose model is
shown here:
[image: Inline image 4]
A good way to get familiar with the scripting API of CodeCity are the
examples. You can open CCBuilder in the new workspace (Playground) and you
can browse the examples (the "e.g." tab).
[image: Inline image 2]
While CodeCity was initially aimed at software systems only, there is
nothing that stops us to use it at visualizing any kind of data! One
example was the visualization of the data taken from a database
(population, city, countries, continents) presented at the Moose Dojo. I'm
sure Doru will be pleased to show you more of that.
In conclusion, I hope you'll enjoy playing/working with CodeCity as much as
I have been enjoying re-implementing it in the last few months. Playing
with CodeCity integrated in the Moose workflows is pure fun. But don' take
my word for it, just give it a try!
Cheers
Ricky
9 years, 2 months
Playground speed
by Stephan Eggermont
I changed CCBuilder>>wallLayout to have 10000 elements instead of 1000. That had a significant
impact on the speed of the playground. Doing CCBuilder (cmd-O) took >15s.
It looks like something is getting precomputed prematurely. Rotating and zooming the resulting
view worked well.
Stephan
9 years, 2 months
Re: [Pharo-business] [ANN] DBPedia: Query Wikipedia from Pharo
by Alexandre Bergel
I’ve just tried and it works pretty well! Impressive!
Below I describe a small example that fetches some data about the US Universities from DBPedia and visualize them using Roassal2.
Pick a fresh 3.0 image.
First, you need to load Hernán work, Sven’s NeoJSON, and Roassal 2 (If you are using a Moose Image, there is no need to load Roassal2 since it is already in):
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gofer it
smalltalkhubUser: 'SvenVanCaekenberghe' project: 'Neo';
package: 'ConfigurationOfNeoJSON';
load.
((Smalltalk at: #ConfigurationOfNeoJSON) load).
Gofer it
smalltalkhubUser: 'hernan' project: 'DBPedia';
package: 'DBPedia';
load.
Gofer it
smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
package: 'ConfigurationOfRoassal2';
load.
((Smalltalk at: #ConfigurationOfRoassal2) loadBleedingEdge).
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Using Roassal2, I was able to render some data extracted from dbpedia:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| map locations rawData rawData2 rawData3 |
map := RTMapBuilder new.
map countries: #('UnitedStates' 'Canada' 'Mexico').
map color: Color veryVeryLightGray.
rawData := DBPediaSearch universitiesInUS.
rawData2 := ((NeoJSONReader fromString: rawData) at: #results) at: #bindings.
rawData3 := rawData2 select: [ :d | d keys includesAll: #('label' 'long' 'lat') ] thenCollect: [ :d | { (Float readFrom: ((d at: 'long') at: 'value')) . (Float readFrom: ((d at: 'lat') at: 'value')) . (d at: 'label' ) at: 'value' } ].
locations := rawData3.
locations do: [ :array |
map cities addCityNamed: array third location: array second @ array first ].
map cities shape size: 8; color: (Color blue alpha: 0.03).
map cities: (locations collect: #third).
map scale: 2.
map render.
map view openInWindowSized: 1000 @ 500.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This is what you get:
This is a small example. Naturally, adding popup for locations is trivial to add.
I have described this on our Facebook page:
https://www.facebook.com/ObjectProfile/photos/a.341189379300999.82969.340...
Hernán, since SPARQL is a bit obscure, it would be great if you could add some more example, and also, how to parametrize the examples. For example, now we can get data for the US, how to modify your example to get them for France or Chile?
Cheers,
Alexandre
On Mar 2, 2014, at 3:43 PM, Hernán Morales Durand <hernan.morales(a)gmail.com> wrote:
> I have uploaded a new configuration so you can query the english Wikipedia dataset from Pharo 3 using SPARQL. Some examples follow:
>
> 1) Retrieve in JSON movies from the beautiful Julianne Moore:
>
> | jsonResults |
> jsonResults := DBPediaSearch new
> setJsonFormat;
> timeout: 5000;
> query: 'SELECT DISTINCT ?filmName WHERE {
> ?film foaf:name ?filmName .
> ?film dbpedia-owl:starring ?actress .
> ?actress foaf:name ?name.
> FILTER(contains(?name, "Julianne"))
> FILTER(contains(?name, "Moore"))
> }';
> execute
>
> To actually get only the titles using NeoJSON:
>
> ((((NeoJSONReader fromString: jsonResults) at: #results) at: #bindings)
> collect: [ : entry | entry at: #filmName ]) collect: [ : movie | movie at: #value ]
>
>
> 2) Retrieve in XML which genre plays those crazy Dream Theater guys :
>
> DBPediaSearch new
> setXmlFormat;
> setDebugOn;
> timeout: 5000;
> query: 'SELECT DISTINCT ?genreLabel
> WHERE {
> ?resource dbpprop:genre ?genre.
> ?resource rdfs:label "Dream Theater"@en.
> ?genre rdfs:label ?genreLabel
> FILTER (lang(?genreLabel)="en")
> }
> LIMIT 100';
> execute
>
> More examples are available in DBPediaSearch class side. You can install it from the Configuration Browser.
> If you want to contribute, just ask me and you will be added as contributor.
> Best regards,
>
> Hernán
>
> _______________________________________________
> Pharo-business mailing list
> Pharo-business(a)lists.pharo.org
> http://lists.pharo.org/mailman/listinfo/pharo-business_lists.pharo.org
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
9 years, 2 months
Moose day
by Bledar Aga
Hello,
I want to register for the Moose Dojo at SCG.
Cheers,
Bledar Aga
9 years, 2 months
One Click Experience?
by Alexandre Bergel
Hi!
Where can I download the one-click experience with Moose 5.0 ?
By the way, when is the release?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
9 years, 2 months