X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/06a3bcb773ddd5474b7e62e954611c38a214b3a1..2e92a780e1b6df3e9c74b94b20dae022dbefaca4:/blog/index.html diff --git a/blog/index.html b/blog/index.html index 0e03a11803..9d71261ff0 100644 --- a/blog/index.html +++ b/blog/index.html @@ -19,6 +19,331 @@ +
+
When terms and policy turn users away
+
7th December 2019
+

When asked to accept terms of use and privacy policies that state +it will to remove rights I otherwise had or accept unreasonable terms +undermining my privacy, I choose away the service. I simply do not +have the conscience to accept terms I have no indention of upholding. +But how are the system and service providers to know how many people +they scared away? Normally I just quietly walk away. But today, I +tried a new approach. I sent the following email (removing the +specifics, as I am not out to take the specific service in question) +to the service provider I decided to not use, to at least give them +one data point on how many users are unhappy with their terms:

+ +
+From: Petter Reinholdtsen +
Subject: When terms of use turn users away +
To: [contact@some.site] +
Date: Sat, 07 Dec 2019 16:30:56 +0100 + +

Dear [Site Owner],

+ +

I was eager to test the system, as it seemed like a fun and +interesting application of [some] technology, but after reading the +terms of use and privacy policy on <URL: +https://www.[some.site]/terms-of-use > and <URL: +https://www.[some.site]/privacy-policy > I want you to know that I +decided to turn away. There were several provisions in the terms and +policy turning me off, but the final term that convinced me was being +asked to sign away my right to reverse engineer.

+ +

-- +
Happy hacking +
Petter Reinholdtsen

+
+ +

I do not expect much to come out of it, but sharing it here in case +others want to give something similar a try too. If companies +discover their terms scare away enough people, perhaps they will be +improved...

+
+
+ + + Tags: english, personvern. + + +
+
+
+ +
+
What would it cost to store all 2018 phone calls in Norway?
+
25th November 2019
+

Four years ago, I did a back of the envelope calculation on +how +much it would cost to store audio recordings of all the phone calls in +Norway, and came up with NOK 2.1 million / EUR 250 000 for the +year 2013. It is time to repeat the calculation using updated +numbers. The calculation is based on how much data storage is needed +for each minute of audio, how many minutes all the calls in Norway +sums up to, multiplied by the cost of data storage.

+ +

The number of phone call minutes for 2018 was fetched from +the NKOM statistics +site, and for 2018, land line calls are listed as 434 238 000 +minutes, while mobile phone calls are listed with 7 542 006 000 +minutes. The total number of minutes is thus 7 976 244 000. For +simplicity, I decided to ignore any advantages in audio compression the +last four years, and continue to assume 60 Kbytes/min as the last +time.

+ +

Storage prices still varies a lot, but as last time, I decide to +take a reasonable big and cheap hard drive, and double its price to +include the surrounding costs into account. A 10 TB disk cost less +than 4500 NOK / 450 EUR these days, and doubling it give 9000 NOK per +10 TB.

+ +

So, with the parameters in place, lets update the old table +estimating cost for calls in a given year:

+ + + + + + + + + + +
YearCall minutesSizePrice in NOK / EUR
200524 000 000 0001.3 PiB1 170 000 / 117 000
201218 000 000 0001.0 PiB900 000 / 90 000
201317 000 000 000950 TiB855 000 / 85 500
20187 976 244 000445 TiB401 100 / 40 110
+ +

Both the cost of storage and the number of phone call minutes have +dropped since the last time, bringing the cost down to a level where I +guess even small organizations can afford to store the audio recording +from every phone call taken in a year in Norway. Of course, this is +just the cost of buying the storage equipment. Maintenance, need to +be included as well, but the volume of a single year is about a single +rack of hard drives, so it is not much more than I could fit in my own +home. Wonder how much the electricity bill would raise if I had that +kind of storage? I doubt it would be more than a few tens of thousand +NOK per year.

+
+
+ + + Tags: english, personvern, surveillance. + + +
+
+
+ +
+
Norwegian movies that might be legal to share on the Internet
+
1st September 2019
+

While working on identifying and counting movies that can be +legally shared on the Internet, I also looked at the Norwegian movies +listed in IMDb. So far I have identified 54 candidates published +before 1940 that might no longer be protected by norwegian copyright +law. Of these, only 29 are available at least in part from the +Norwegian National Library. It can be assumed that the remaining 25 +movies are lost. It seem most useful to identify the copyright status +of movies that are not lost. To verify that the movie is really no +longer protected, one need to verify the list of copyright holders and +figure out if and when they died. I've been able to identify some of +them, but for some it is hard to figure out when they died.

+ +

This is the list of 29 movies both available from the library and +possibly no longer protected by copyright law. The year range +(1909-1979 on the first line) is year of publication and last year +with copyright protection.

+ +
+1909-1979 ( 70 year) NSB Bergensbanen 1909 - http://www.imdb.com/title/tt0347601/
+1910-1980 ( 70 year) Bjørnstjerne Bjørnsons likfærd - http://www.imdb.com/title/tt9299304/
+1910-1980 ( 70 year) Bjørnstjerne Bjørnsons begravelse - http://www.imdb.com/title/tt9299300/
+1912-1998 ( 86 year) Roald Amundsens Sydpolsferd (1910-1912) - http://www.imdb.com/title/tt9237500/
+1913-2006 ( 93 year) Roald Amundsen på sydpolen - http://www.imdb.com/title/tt0347886/
+1917-1987 ( 70 year) Fanden i nøtten - http://www.imdb.com/title/tt0346964/
+1919-2018 ( 99 year) Historien om en gut - http://www.imdb.com/title/tt0010259/
+1920-1990 ( 70 year) Kaksen på Øverland - http://www.imdb.com/title/tt0011361/
+1923-1993 ( 70 year) Norge - en skildring i 6 akter - http://www.imdb.com/title/tt0014319/
+1925-1997 ( 72 year) Roald Amundsen - Ellsworths flyveekspedition 1925 - http://www.imdb.com/title/tt0016295/
+1925-1995 ( 70 year) En verdensreise, eller Da knold og tott vaskede negrene hvite med 13 sæpen - http://www.imdb.com/title/tt1018948/
+1926-1996 ( 70 year) Luftskibet 'Norge's flugt over polhavet - http://www.imdb.com/title/tt0017090/
+1926-1996 ( 70 year) Med 'Maud' over Polhavet - http://www.imdb.com/title/tt0017129/
+1927-1997 ( 70 year) Den store sultan - http://www.imdb.com/title/tt1017997/
+1928-1998 ( 70 year) Noahs ark - http://www.imdb.com/title/tt1018917/
+1928-1998 ( 70 year) Skjæbnen - http://www.imdb.com/title/tt1002652/
+1928-1998 ( 70 year) Chefens cigarett - http://www.imdb.com/title/tt1019896/
+1929-1999 ( 70 year) Se Norge - http://www.imdb.com/title/tt0020378/
+1929-1999 ( 70 year) Fra Chr. Michelsen til Kronprins Olav og Prinsesse Martha - http://www.imdb.com/title/tt0019899/
+1930-2000 ( 70 year) Mot ukjent land - http://www.imdb.com/title/tt0021158/
+1930-2000 ( 70 year) Det er natt - http://www.imdb.com/title/tt1017904/
+1930-2000 ( 70 year) Over Besseggen på motorcykel - http://www.imdb.com/title/tt0347721/
+1931-2001 ( 70 year) Glimt fra New York og den Norske koloni - http://www.imdb.com/title/tt0021913/
+1932-2007 ( 75 year) En glad gutt - http://www.imdb.com/title/tt0022946/
+1934-2004 ( 70 year) Den lystige radio-trio - http://www.imdb.com/title/tt1002628/
+1935-2005 ( 70 year) Kronprinsparets reise i Nord Norge - http://www.imdb.com/title/tt0268411/
+1935-2005 ( 70 year) Stormangrep - http://www.imdb.com/title/tt1017998/
+1936-2006 ( 70 year) En fargesymfoni i blått - http://www.imdb.com/title/tt1002762/
+1939-2009 ( 70 year) Til Vesterheimen - http://www.imdb.com/title/tt0032036/
+
+ +To be sure which one of these can be legally shared on the Internet, +in addition to verifying the right holders list is complete, one need +to verify the death year of these persons: + +
+Bjørnstjerne Bjørnson (dead 1910) - http://www.imdb.com/name/nm0085085/
+Gustav Adolf Olsen (missing death year) - http://www.imdb.com/name/nm0647652/
+Gustav Lund (missing death year) - http://www.imdb.com/name/nm0526168/
+John W. Brunius (dead 1937) - http://www.imdb.com/name/nm0116307/
+Ola Cornelius (missing death year) - http://www.imdb.com/name/nm1227236/
+Oskar Omdal (dead 1927) - http://www.imdb.com/name/nm3116241/
+Paul Berge (missing death year) - http://www.imdb.com/name/nm0074006/
+Peter Lykke-Seest (dead 1948) - http://www.imdb.com/name/nm0528064/
+Roald Amundsen (dead 1928) - https://www.imdb.com/name/nm0025468/
+Sverre Halvorsen (dead 1936) - http://www.imdb.com/name/nm1299757/
+Thomas W. Schwartz (missing death year) - http://www.imdb.com/name/nm2616250/
+
+ +

Perhaps you can help me figuring death year of those missing it, or +right holders if some are missing in IMDb? It would be nice to have a +definite list of Norwegian movies that are legal to share on the +Internet.

+ +

This is the list of 25 movies not available from the library and +possibly no longer protected by copyright law:

+ +
+1907-2009 (102 year) Fiskerlivets farer - http://www.imdb.com/title/tt0121288/
+1912-2018 (106 year) Historien omen moder - http://www.imdb.com/title/tt0382852/
+1912-2002 ( 90 year) Anny - en gatepiges roman - http://www.imdb.com/title/tt0002026/
+1916-1986 ( 70 year) The Mother Who Paid - http://www.imdb.com/title/tt3619226/
+1917-2018 (101 year) En vinternat - http://www.imdb.com/title/tt0008740/
+1917-2018 (101 year) Unge hjerter - http://www.imdb.com/title/tt0008719/
+1917-2018 (101 year) De forældreløse - http://www.imdb.com/title/tt0007972/
+1918-2018 (100 year) Vor tids helte - http://www.imdb.com/title/tt0009769/
+1918-2018 (100 year) Lodsens datter - http://www.imdb.com/title/tt0009314/
+1919-2018 ( 99 year) Æresgjesten - http://www.imdb.com/title/tt0010939/
+1921-2006 ( 85 year) Det nye year? - http://www.imdb.com/title/tt0347686/
+1921-1991 ( 70 year) Under Polarkredsens himmel - http://www.imdb.com/title/tt0012789/
+1923-1993 ( 70 year) Nordenfor polarcirkelen - http://www.imdb.com/title/tt0014318/
+1925-1995 ( 70 year) Med 'Stavangerfjord' til Nordkap - http://www.imdb.com/title/tt0016098/
+1926-1996 ( 70 year) Over Atlanterhavet og gjennem Amerika - http://www.imdb.com/title/tt0017241/
+1926-1996 ( 70 year) Hallo! Amerika! - http://www.imdb.com/title/tt0016945/
+1926-1996 ( 70 year) Tigeren Teodors triumf - http://www.imdb.com/title/tt1008052/
+1927-1997 ( 70 year) Rød sultan - http://www.imdb.com/title/tt1017979/
+1927-1997 ( 70 year) Søndagsfiskeren Flag - http://www.imdb.com/title/tt1018002/
+1930-2000 ( 70 year) Ro-ro til fiskeskjær - http://www.imdb.com/title/tt1017973/
+1933-2003 ( 70 year) I kongens klær - http://www.imdb.com/title/tt0024164/
+1934-2004 ( 70 year) Eventyret om de tre bukkene bruse - http://www.imdb.com/title/tt1007963/
+1934-2004 ( 70 year) Pål sine høner - http://www.imdb.com/title/tt1017966/
+1937-2007 ( 70 year) Et mesterverk - http://www.imdb.com/title/tt1019937/
+1938-2008 ( 70 year) En Harmony - http://www.imdb.com/title/tt1007975/
+
+ +

Several of these movies completely lack right holder information in +IMDb and elsewhere. Without access to a copy of the movie, it is +often impossible to get the list of people involved in making the +movie, making it impossible to figure out the correct copyright +status.

+ +

Not listed here are the movies still protected by copyright law. +Their copyright terms varies from 79 to 144 years, according to the +information I have available so far. One of the non-lost movies might +change status next year, +Mustads Mono from 1920. +The next one might be +Hvor isbjørnen ferdes +from 1935 in 2024.

+ +

As usual, if you use Bitcoin and want to show your support of my +activities, please send Bitcoin donations to my address +15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

+
+
+ + + Tags: english, opphavsrett, verkidetfri. + + +
+
+
+ +
+
Legal to share more than 16,000 movies listed on IMDB?
+
10th August 2019
+

The recent announcement of from the New York Public Library on its +results in +identifying +books published in the USA that are now in the public domain, +inspired me to update the scripts I use to track down movies that are +in the public domain. This involved updating the script used to +extract lists of movies believed to be in the public domain, to work +with the latest version of the source web sites. In particular the +new edition of the Retro Film +Vault web site now seem to list all the films available from that +distributor, bringing the films identified there to more than 12.000 +movies, and I was able to connect 46% of these to IMDB titles.

+ +

The new total is 16307 IMDB IDs (aka films) in the public domain or +creative commons licensed, and unknown status for 31460 movies +(possibly duplicates of the 16307).

+ +

The complete data set is available from +a +public git repository, including the scripts used to create it.

+ +

Anyway, this is the summary of the 28 collected data sources so +far:

+ +

+ 2361 entries (   50 unique) with and 22472 without IMDB title ID in free-movies-archive-org-search.json
+ 2363 entries (  146 unique) with and     0 without IMDB title ID in free-movies-archive-org-wikidata.json
+  299 entries (   32 unique) with and    93 without IMDB title ID in free-movies-cinemovies.json
+   88 entries (   52 unique) with and    36 without IMDB title ID in free-movies-creative-commons.json
+ 3190 entries ( 1532 unique) with and    13 without IMDB title ID in free-movies-fesfilm-xls.json
+  620 entries (   24 unique) with and   283 without IMDB title ID in free-movies-fesfilm.json
+ 1080 entries (  165 unique) with and   651 without IMDB title ID in free-movies-filmchest-com.json
+  830 entries (   13 unique) with and     0 without IMDB title ID in free-movies-icheckmovies-archive-mochard.json
+   19 entries (   19 unique) with and     0 without IMDB title ID in free-movies-imdb-c-expired-gb.json
+ 7410 entries ( 7101 unique) with and     0 without IMDB title ID in free-movies-imdb-c-expired-us.json
+ 1205 entries (   41 unique) with and     0 without IMDB title ID in free-movies-imdb-pd.json
+  163 entries (   22 unique) with and    88 without IMDB title ID in free-movies-infodigi-pd.json
+  158 entries (  103 unique) with and     0 without IMDB title ID in free-movies-letterboxd-looney-tunes.json
+  113 entries (    4 unique) with and     0 without IMDB title ID in free-movies-letterboxd-pd.json
+  182 entries (   71 unique) with and     0 without IMDB title ID in free-movies-letterboxd-silent.json
+  248 entries (   85 unique) with and     0 without IMDB title ID in free-movies-manual.json
+  158 entries (    4 unique) with and    64 without IMDB title ID in free-movies-mubi.json
+   85 entries (    1 unique) with and    23 without IMDB title ID in free-movies-openflix.json
+  520 entries (   22 unique) with and   244 without IMDB title ID in free-movies-profilms-pd.json
+  343 entries (   14 unique) with and    10 without IMDB title ID in free-movies-publicdomainmovies-info.json
+  701 entries (   16 unique) with and   560 without IMDB title ID in free-movies-publicdomainmovies-net.json
+   74 entries (   13 unique) with and    60 without IMDB title ID in free-movies-publicdomainreview.json
+  698 entries (   16 unique) with and   118 without IMDB title ID in free-movies-publicdomaintorrents.json
+ 5506 entries ( 2941 unique) with and  6585 without IMDB title ID in free-movies-retrofilmvault.json
+   16 entries (    0 unique) with and     0 without IMDB title ID in free-movies-thehillproductions.json
+  110 entries (    2 unique) with and    29 without IMDB title ID in free-movies-two-movies-net.json
+   73 entries (   20 unique) with and   131 without IMDB title ID in free-movies-vodo.json
+16307 unique IMDB title IDs in total, 12509 only in one list, 31460 without IMDB title ID
+

+ +

New this time is a list of all the identified IMDB titles, with +title, year and running time, provided in free-complete.json. this +file also indiciate which source is used to conclude the video is free +to distribute.

+ +

As usual, if you use Bitcoin and want to show your support of my +activities, please send Bitcoin donations to my address +15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

+
+
+ + + Tags: english, opphavsrett, verkidetfri. + + +
+
+
+
Oppdatert Noark 5 Tjenestegrenesnitt versjon 1.0 for Noark 5.5.0
5th July 2019
@@ -28,7 +353,7 @@ for Noark 5 Tjenestegrensesnitt gitt ut. Det så lenge mørkt ut for sjansene for å få inn nødvendige korreksjoner i spesifikasjonsteksten innen rimelig tid, men takket være intens og god innsats fra Mona og Anne Sofie hos Arkivverket de siste ukene, så ble -resultatet som ble gitt ut på USAs frigjøringsdag mye bedre enn jeg +resultatet som ble gitt ut på USAs uavhengighetsdag mye bedre enn jeg fryktet.

Spesifikasjonen er @@ -43,7 +368,7 @@ forrige versjon fra 2016. Ta gjerne en titt.

Ellers må jeg jo si at det var hyggelig å se at min forrige bloggpost om tjenestegrensesnittet fikk en -lenke +lenke fra Arkivverket Beta.

Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til @@ -542,373 +867,6 @@ activities, please send Bitcoin donations to my address

-
-
The space rover coquine, or how I ended up on the dark side of the moon
-
2nd June 2019
-

A while back a college and friend from Debian and the Skolelinux / -Debian Edu project approached me, asking if I knew someone that might -be interested in helping out with a technology project he was running -as a teacher at L'école -franco-danoise - the Danish-French school and kindergarden. The -kids were building robots, rovers. The story behind it is to build a -rover for use -on -the dark side of the moon, and remote control it. As travel cost -was a bit high for the final destination, and they wanted to test the -concept first, he was looking for volunteers to host a rover for the -kids to control in a foreign country. I ended up volunteering as a -host, and last week the rover arrived. It took a while to arrive -after it was -built and shipped, because of customs confusion. Luckily we were -able fix it quickly with help from my colleges at work.

- -

This is what it looked like when the rover arrived. Note the cute -eyes looking up on me from the wrapping

- - - - - -

Once the robot arrived, we needed to track -down batteries and figure out how to build custom firmware for it with -the appropriate wifi settings. I asked a friend if I could get two -18650 batteries from his pile of Tesla batteries (he had them from the -wrack of a crashed Tesla), so now the rover is running on Tesla -batteries.

- -

Building -the rover -firmware proved a bit harder, as the code did not work out of the -box with the Arduino IDE package in Debian Buster. I suspect this is -due to a unsolved - license problem -with arduino blocking Debian from upgrading to the latest version. -In the end we gave up debugging why the IDE failed to find the -required libraries, and ended up using the Arduino Makefile from the -arduino-mk Debian -package instead. Unfortunately the camera library is missing from -the Arduino environment in Debian, so we disabled the camera support -for the first firmware build, to get something up and running. With -this reduced firmware, the robot could be controlled via the -controller server, driving around and measuring distance using its -internal acoustic sensor.

- -

Next, With some help from my friend in Denmark, which checked in the -camera library into the gitlab repository for me to use, we were able -to build a new and more complete version of the firmware, and the -robot is now up and running. This is what the "commander" web page -look like after taking a measurement and a snapshot:

- - - -

If you want to learn more about this project, you can check out the -The -Dark Side Challenge Hackaday web pages.

- -

As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

-
-
- - - Tags: english, robot. - - -
-
-
- -
-
Nikita version 0.4 released - free software archive API server
-
22nd May 2019
-

This morning, a new release of -Nikita -Noark 5 core project was -announced -on the project mailing list. The Nikita free software solution is -an implementation of the Norwegian archive standard Noark 5 used by -government offices in Norway. These were the changes in version 0.4 -since version 0.3, see the email link above for links to a demo site:

- - - -

If free and open standardized archiving API sound interesting to -you, please contact us on IRC -(#nikita on -irc.freenode.net) or email -(nikita-noark -mailing list).

- -

As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

-
-
- - - Tags: english, noark5, nuug, offentlig innsyn, standard. - - -
-
-
- -
-
MIME type "text/vnd.sosi" for SOSI map data
-
20th May 2019
-

As part of my involvement in the work to -standardise -a REST based API for Noark 5, the Norwegian archiving standard, I -spent some time the last few months to try to register a -MIME type -and PRONOM -code for the SOSI file format. The background is that there is a -set of formats approved for long term storage and archiving in Norway, -and among these formats, SOSI is the only format missing a MIME type -and PRONOM code.

- -

What is SOSI, you might ask? To quote Wikipedia: SOSI is short for -Samordnet Opplegg for Stedfestet Informasjon (literally "Coordinated -Approach for Spatial Information", but more commonly expanded in -English to Systematic Organization of Spatial Information). It is a -text based file format for geo-spatial vector information used in -Norway. Information about the SOSI format can be found in English -from Wikipedia. The -specification is available in Norwegian from -the -Norwegian mapping authority. The SOSI standard, which originated -in the beginning of nineteen eighties, was the inspiration and formed the -basis for the XML based -Geography -Markup Language.

- -

I have so far written -a pattern matching -rule for the file(1) unix tool to recognize SOSI files, submitted -a request to the PRONOM project to have a PRONOM ID assigned to the -format (reference TNA1555078202S60), and today send a request to IANA -to register the "text/vnd.sosi" MIME type for this format (referanse -IANA -#1143144). If all goes well, in a few months, anyone implementing -the Noark 5 Tjenestegrensesnitt API spesification should be able to -use an official MIME type and PRONOM code for SOSI files. In -addition, anyone using SOSI files on Linux should be able to -automatically recognise the format and web sites handing out SOSI -files can begin providing a more specific MIME type. So far, SOSI -files has been handed out from web sites using the -"application/octet-stream" MIME type, which is just a nice way of -stating "I do not know". Soon, we will know. :)

- -

As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

-
-
- - - Tags: english, kart, noark5, standard. - - -
-
-
- -
-
PlantUML for text based UML diagram modelling - nice free software
-
25th March 2019
-

As part of my involvement with the -Nikita -Noark 5 core project, I have been proposing improvements to the -API specification created by The -National Archives of Norway and helped migrating the text from a -version control system unfriendly binary format (docx) to Markdown in -git. Combined with the migration to a public git repository (on -github), this has made it possible for anyone to suggest improvement -to the text.

- -

The specification is filled with UML diagrams. I believe the -original diagrams were modelled using Sparx Systems Enterprise -Architect, and exported as EMF files for import into docx. This -approach make it very hard to track changes using a version control -system. To improve the situation I have been looking for a good text -based UML format with associated command line free software tools on -Linux and Windows, to allow anyone to send in corrections to the UML -diagrams in the specification. The tool must be text based to work -with git, and command line to be able to run it automatically to -generate the diagram images. Finally, it must be free software to -allow anyone, even those that can not accept a non-free software -license, to contribute.

- -

I did not know much about free software UML modelling tools when I -started. I have used dia and inkscape for simple modelling in the -past, but neither are available on Windows, as far as I could tell. I -came across a nice -list -of text mode uml tools, and tested out a few of the tools listed -there. The PlantUML tool seemed -most promising. After verifying that the packages -is available in -Debian and found its -Java source under a GPL license on github, I set out to test if it -could represent the diagrams we needed, ie the ones currently in -the -Noark 5 Tjenestegrensesnitt specification. I am happy to report -that it could represent them, even thought it have a few warts here -and there.

- -

After a few days of modelling I completed the task this weekend. A -temporary link to the complete set of diagrams (original and from -PlantUML) is available in -the -github issue discussing the need for a text based UML format, but -please note I lack a sensible tool to convert EMF files to PNGs, so -the "original" rendering is not as good as the original was in the -publised PDF.

- -

Here is an example UML diagram, showing the core classes for -keeping metadata about archived documents:

- -
-@startuml
-skinparam classAttributeIconSize 0
-
-!include media/uml-class-arkivskaper.iuml
-!include media/uml-class-arkiv.iuml
-!include media/uml-class-klassifikasjonssystem.iuml
-!include media/uml-class-klasse.iuml
-!include media/uml-class-arkivdel.iuml
-!include media/uml-class-mappe.iuml
-!include media/uml-class-merknad.iuml
-!include media/uml-class-registrering.iuml
-!include media/uml-class-basisregistrering.iuml
-!include media/uml-class-dokumentbeskrivelse.iuml
-!include media/uml-class-dokumentobjekt.iuml
-!include media/uml-class-konvertering.iuml
-!include media/uml-datatype-elektronisksignatur.iuml
-
-Arkivstruktur.Arkivskaper "+arkivskaper 1..*" <-o "+arkiv 0..*" Arkivstruktur.Arkiv
-Arkivstruktur.Arkiv o--> "+underarkiv 0..*" Arkivstruktur.Arkiv
-Arkivstruktur.Arkiv "+arkiv 1" o--> "+arkivdel 0..*" Arkivstruktur.Arkivdel
-Arkivstruktur.Klassifikasjonssystem "+klassifikasjonssystem [0..1]" <--o "+arkivdel 1..*" Arkivstruktur.Arkivdel
-Arkivstruktur.Klassifikasjonssystem "+klassifikasjonssystem [0..1]" o--> "+klasse 0..*" Arkivstruktur.Klasse
-Arkivstruktur.Arkivdel "+arkivdel 0..1" o--> "+mappe 0..*" Arkivstruktur.Mappe
-Arkivstruktur.Arkivdel "+arkivdel 0..1" o--> "+registrering 0..*" Arkivstruktur.Registrering
-Arkivstruktur.Klasse "+klasse 0..1" o--> "+mappe 0..*" Arkivstruktur.Mappe
-Arkivstruktur.Klasse "+klasse 0..1" o--> "+registrering 0..*" Arkivstruktur.Registrering
-Arkivstruktur.Mappe --> "+undermappe 0..*" Arkivstruktur.Mappe
-Arkivstruktur.Mappe "+mappe 0..1" o--> "+registrering 0..*" Arkivstruktur.Registrering
-Arkivstruktur.Merknad "+merknad 0..*" <--* Arkivstruktur.Mappe
-Arkivstruktur.Merknad "+merknad 0..*" <--* Arkivstruktur.Dokumentbeskrivelse
-Arkivstruktur.Basisregistrering -|> Arkivstruktur.Registrering
-Arkivstruktur.Merknad "+merknad 0..*" <--* Arkivstruktur.Basisregistrering
-Arkivstruktur.Registrering "+registrering 1..*" o--> "+dokumentbeskrivelse 0..*" Arkivstruktur.Dokumentbeskrivelse
-Arkivstruktur.Dokumentbeskrivelse "+dokumentbeskrivelse 1" o-> "+dokumentobjekt 0..*" Arkivstruktur.Dokumentobjekt
-Arkivstruktur.Dokumentobjekt *-> "+konvertering 0..*" Arkivstruktur.Konvertering
-Arkivstruktur.ElektroniskSignatur -[hidden]-> Arkivstruktur.Dokumentobjekt
-@enduml
-
- -

The format is quite -compact, with little redundant information. The text expresses -entities and relations, and there is little layout related fluff. One -can reuse content by using include files, allowing for consistent -naming across several diagrams. The include files can be standalone -PlantUML too. Here is the content of -media/uml-class-arkivskaper.iuml:

- -
-@startuml
-class Arkivstruktur.Arkivskaper  {
-  +arkivskaperID : string
-  +arkivskaperNavn : string
-  +beskrivelse : string [0..1]
-}
-@enduml
-
- -

This is what the complete diagram for the PlantUML notation above -look like:

- -

- -

A cool feature of PlantUML is that the generated PNG files include -the entire original source diagram as text. The source (with include -statements expanded) can be extracted using for example -exiftool. Another cool feature is that parts of the entities -can be hidden after inclusion. This allow to use include files with -all attributes listed, even for UML diagrams that should not list any -attributes.

- -

The diagram also show some of the warts. Some times the layout -engine place text labels on top of each other, and some times it place -the class boxes too close to each other, not leaving room for the -labels on the relationship arrows. The former can be worked around by -placing extra newlines in the labes (ie "\n"). I did not do it here -to be able to demonstrate the issue. I have not found a good way -around the latter, so I normally try to reduce the problem by changing -from vertical to horizontal links to improve the layout.

- -

All in all, I am quite happy with PlantUML, and very impressed with -how quickly its lead developer responds to questions. So far I got an -answer to my questions in a few hours when I send an email. I -definitely recommend looking at PlantUML if you need to make UML -diagrams. Note, PlantUML can draw a lot more than class relations. -Check out the documention for a complete list. :)

- -

As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

-
-
- - - Tags: english, nice free software, noark5, nuug, standard. - - -
-
-
-

RSS feed