[rdfweb-dev] languages
Earle Martin
rdf at downlode.org
Tue Jul 29 23:04:00 UTC 2003
On Tue, Jul 29, 2003 at 04:40:53PM -0500, Peter wrote:
> One bit I'd like to see in FOAF is a way to specify what languages I
> know, including level (fluent, beginner, intermediate, etc.) and which
> language I prefer, if any.
I was thinking about this today, since I just started Japanese lessons, and
also yesterday returned from Paris, where I had the chance for the first
time to use what I remember of the French I learned at school.
As Leandro mentioned, his schema lets you say:
<lang:masters>en-gb</lang:masters> <!-- reads and writes -->
<lang:reads>fr</lang:reads>
<lang:writes>de</lang:writes>
However, like he says, it's
> a very basic schema... The schema is called Speaks, Reads & Writes, but
> you can't specify which language do you prefer or what the level of
> knowledge you have for it.
it's very basic. I also don't think "writes" is a
very useful property, because I can't see how someone could write a
language but not read it - it seems to me like that would be covered by
"masters".
> <foaf:language type='preferred' level='fluent'>en</foaf:language>
> <foaf:language type='reading' level='intermediate'>la</foaf:language>
> <foaf:language type='occasional' level='beginner'>cz</foaf:language>
Rewriting these in the style of inkel's schema, I get:
<lang:preferred>
<lang:name>en</lang:name>
<lang:level>fluent</lang:level>
</lang:preferred>
<lang:reading>
<lang:name>la</lang:name>
<lang:level>intermediate</lang:level>
</lang:reading>
<lang:occasional>
<lang:name>cz</lang:name>
<lang:level>beginner</lang:level>
</lang:occasional>
Although my striping skills are a bit shonky, so that might not be quite
right. Also, "lang:name" is a bit weak.
--
# Earle Martin http://c2.com/cgi/wiki?EarleMartin
$a="f695a9a2176a7dd1618af6649896ee10f05ea986de18af6277e9a1d8ef4696644569a1d".
"8ef46961ae1e64277e9896eea7d92ea8003e9a1d8ef4696f6950";$b="8ALB6AIA4.BA2";$c=
join"",unpack"C*",$b;$c=~s/7/2/g;@b=split"",$c;foreach$d(@b){$e=hex(substr($a
,$f,$d));while(length($e)<8){substr($e,0,0)=0;}print pack"b8",$e;$f+=$d;}
More information about the foaf-dev
mailing list