Nicholas J Humfrey | 8 Dec 2008 02:21
Favicon
Gravatar

[foaf-dev] foaf2homepage

Hello,

I have just rebuilt my homepage out of my FOAF file using ruby + reddy  
+ erb + some glue:
http://www.aelius.com/njh/

I would like to construct the sentence "I am a Software Engineer,  
working for BBC Audio and Music in London." out of information from my  
foaf profile. I have added an rdfs:label to my foaf:workplaceHomepage  
and foaf:based_near properties, but can anyone suggest how I might  
describe that my job role working at my employer is as a 'Software  
Engineer'?

Are there any existing extensions to FOAF for this kind of employment  
information?

I built a little class on top of Reddy to do some linking open data  
type stuff with it:

Foaf = Namespace.new("http://xmlns.com/foaf/0.1/", "foaf");
me = Resource.new( 'http://www.aelius.com/njh#me' )
puts "   foaf:name #{me[Foaf.name]}"

me.each_with_predicate(Foaf.knows) do |friend|
     puts "  foaf:knows #{friend[Foaf.name]}"
     puts "    - #{friend[Foaf.homepage]}"
end

Code is here:
http://svn.aelius.com/repos/foaf-homepage/
(Continue reading)

Christopher Schmidt | 8 Dec 2008 02:34
Favicon
Gravatar

Re: [foaf-dev] foaf2homepage

On Mon, Dec 08, 2008 at 01:21:52AM +0000, Nicholas J Humfrey wrote:
> Hello,
> 
> I have just rebuilt my homepage out of my FOAF file using ruby + reddy  
> + erb + some glue:
> http://www.aelius.com/njh/
> 
> I would like to construct the sentence "I am a Software Engineer,  
> working for BBC Audio and Music in London." out of information from my  
> foaf profile. I have added an rdfs:label to my foaf:workplaceHomepage  
> and foaf:based_near properties, but can anyone suggest how I might  
> describe that my job role working at my employer is as a 'Software  
> Engineer'?
> 
> Are there any existing extensions to FOAF for this kind of employment  
> information?

To me, this sounds like a foaf:olb...

Regards,
--

-- 
Christopher Schmidt
Web Developer
Nicholas J Humfrey | 8 Dec 2008 10:17
Favicon
Gravatar

Re: [foaf-dev] foaf2homepage

Ah, you mean http://vocab.org/bio/0.1/olb ?

Might have a go at using:
http://vocab.org/participation/

nick.

On 8 Dec 2008, at 01:34, Christopher Schmidt wrote:

> On Mon, Dec 08, 2008 at 01:21:52AM +0000, Nicholas J Humfrey wrote:
>> Hello,
>>
>> I have just rebuilt my homepage out of my FOAF file using ruby +  
>> reddy
>> + erb + some glue:
>> http://www.aelius.com/njh/
>>
>> I would like to construct the sentence "I am a Software Engineer,
>> working for BBC Audio and Music in London." out of information from  
>> my
>> foaf profile. I have added an rdfs:label to my foaf:workplaceHomepage
>> and foaf:based_near properties, but can anyone suggest how I might
>> describe that my job role working at my employer is as a 'Software
>> Engineer'?
>>
>> Are there any existing extensions to FOAF for this kind of employment
>> information?
>
> To me, this sounds like a foaf:olb...
>
(Continue reading)

Matthew Leingang | 8 Dec 2008 14:00
Picon
Favicon

Re: [foaf-dev] foaf2homepage

Dear Nick,

Must it be an all-FOAF solution?  There are HR-XML schemas which can  
be used to describe roles in employed positions:

http://en.wikipedia.org/wiki/HR-XML

--Matt

On Dec 7, 2008, at 8:21 PM, Nicholas J Humfrey wrote:

> Hello,
>
> I have just rebuilt my homepage out of my FOAF file using ruby + reddy
> + erb + some glue:
> http://www.aelius.com/njh/
>
> I would like to construct the sentence "I am a Software Engineer,
> working for BBC Audio and Music in London." out of information from my
> foaf profile. I have added an rdfs:label to my foaf:workplaceHomepage
> and foaf:based_near properties, but can anyone suggest how I might
> describe that my job role working at my employer is as a 'Software
> Engineer'?
>
> Are there any existing extensions to FOAF for this kind of employment
> information?
>
>
>
> I built a little class on top of Reddy to do some linking open data
(Continue reading)

Dan Brickley | 11 Dec 2008 15:49

[foaf-dev] RDF specgen revisited - help needed!


Hi folks

I'm looking for some Python-hacking help, to get a new FOAF spec out.

Some of you might know about specgen. I've long used a version of this 
script to re-generate the FOAF spec from sources. Originally in Ruby, 
Uldis Bojars and Chris Schmidt made a Python version and disentangled it 
from the specifics of the FOAF spec/site. Their specgen4.py, as well as 
the earlier specgen.py the last FOAF spec was built from, both require 
the compilation of Redland plus the Python bindings. Although Redland is 
a solid, powerful and mature library, it can be tough to get the Python 
bindings set up. Lately I've failed to manage this either on my Mac 
laptop or under Linux at Dreamhost. Redland is overkill for this task. 
I'd like to be able to rev the FOAF spec with far fewer dependencies.

So I've begun exploring a rewrite of specgen. My first attempt (now 
abandoned as specgen4b.py) was to simply go through and replace calls to 
Redland with similar calls to the librdf library. I found this rather 
error prone, since the RDF logic is tangled up with page-generation code.

Despite my ignorance of Python and rdflib, I'm attempting a fresh start. 
The idea is to have a few core utility classes, Vocab, Term (Class, 
Property) and populate these - as before - from on disk RDF and HTML 
descriptions of an RDF vocabulary.

Everything I have so far is at http://svn.foaf-project.org/foaftown/specgen/

The RDFS/OWL-loader and utility code is in libvocab.py. This does 
nothing fancy; certainly no RDFS or OWL reasoning.
(Continue reading)

Story Henry | 11 Dec 2008 16:06

Re: [foaf-dev] RDF specgen revisited - help needed!


On 11 Dec 2008, at 15:49, Dan Brickley wrote:

> . Their specgen4.py, as well as
> the earlier specgen.py the last FOAF spec was built from, both require
> the compilation of Redland plus the Python bindings. Although  
> Redland is
> a solid, powerful and mature library, it can be tough to get the  
> Python
> bindings set up. Lately I've failed to manage this either on my Mac
> laptop or under Linux at Dreamhost. Redland is overkill for this task.
> I'd like to be able to rev the FOAF spec with far fewer dependencies.

Yes, I also had this trouble. It may be worth considering jython and  
running this
on Sesame, Jena, Pellet or EulerSharp . Euler is very small, and reads  
N3 rules, so this could
be done lightly.

(Mind you I think one may also be able to read cwm in Jython)

One could then create a very simple distribution for this in java.

Henry
Dan Brickley | 11 Dec 2008 16:09

Re: [foaf-dev] RDF specgen revisited - help needed!

On 11/12/08 16:06, Story Henry wrote:
>
> On 11 Dec 2008, at 15:49, Dan Brickley wrote:
>
>> . Their specgen4.py, as well as
>> the earlier specgen.py the last FOAF spec was built from, both require
>> the compilation of Redland plus the Python bindings. Although Redland is
>> a solid, powerful and mature library, it can be tough to get the Python
>> bindings set up. Lately I've failed to manage this either on my Mac
>> laptop or under Linux at Dreamhost. Redland is overkill for this task.
>> I'd like to be able to rev the FOAF spec with far fewer dependencies.
>
> Yes, I also had this trouble. It may be worth considering jython and
> running this
> on Sesame, Jena, Pellet or EulerSharp . Euler is very small, and reads
> N3 rules, so this could
> be done lightly.
>
> (Mind you I think one may also be able to read cwm in Jython)
>
> One could then create a very simple distribution for this in java.

Cute idea but I'm trying to get away from exotic dependencies :) The 
rdflib library seems to offer more than enough for poking around the 
schema data. I just got a reply from Uldis on the SIOC list, he is 
working on a rewrite, so hope we can fuse those efforts. Mine is pretty 
basic so far but I think heading in right direction...

Dan
(Continue reading)

Dan Brickley | 11 Dec 2008 18:42

Re: [foaf-dev] RDF specgen revisited - help needed!

Crossposting again, sorry for duplicates.

After discussion on sioc-dev and a bit in Skype with Sergio, I've made a 
little more efforts on my new code. I hope and expect these strands can 
all integrate, but I don't want to make a giant project of this before 
getting a new FOAF rev out.

So what I've done is commit some Python unit tests that externalise some 
of my wishlist and TODOs.

http://svn.foaf-project.org/foaftown/specgen/run_tests.py

The script defines a subset suite for tests that ought to pass now, and 
includes a couple more that represent work I want to do.  It's pretty 
basic but a start. If anyone wants write access to this filetree, just 
let me know :)

cheers,

Dan

>> [1] http://forge.morfeo-project.org/wiki_en/index.php/SpecGen
Danny Ayers | 11 Dec 2008 20:36
Picon
Gravatar

Re: [foaf-dev] RDF specgen revisited - help needed!

 danbri, any reason for:

 ?x a ?type .
 FILTER (?type = <http://www.w3.org/2002/07/owl#ObjectProperty>)
 instead of
 ?x a owl:ObjectProperty .

 ?

hmm, although I suspect you might want OPTIONALs to catch
owl:DatatypeProperty etc.

2008/12/11 Dan Brickley <danbri@...>:
>
> Crossposting again, sorry for duplicates.
>
> After discussion on sioc-dev and a bit in Skype with Sergio, I've made a
> little more efforts on my new code. I hope and expect these strands can
> all integrate, but I don't want to make a giant project of this before
> getting a new FOAF rev out.
>
> So what I've done is commit some Python unit tests that externalise some
> of my wishlist and TODOs.
>
> http://svn.foaf-project.org/foaftown/specgen/run_tests.py
>
> The script defines a subset suite for tests that ought to pass now, and
> includes a couple more that represent work I want to do.  It's pretty
> basic but a start. If anyone wants write access to this filetree, just
> let me know :)
(Continue reading)

Nicholas J Humfrey | 11 Dec 2008 22:17
Favicon
Gravatar

Re: [foaf-dev] RDF specgen revisited - help needed!

Possible alternative;

Patrick Sinclair wrote ldontospec:
http://github.com/metade/ldontospec
"An ontology documentation generator based on the principles of Linked  
Data."

Which is used to build the Programmes Ontology page:
http://www.bbc.co.uk/ontologies/programmes/

nick.

On 11 Dec 2008, at 14:49, Dan Brickley wrote:

>
> Hi folks
>
> I'm looking for some Python-hacking help, to get a new FOAF spec out.
>
> Some of you might know about specgen. I've long used a version of this
> script to re-generate the FOAF spec from sources. Originally in Ruby,
> Uldis Bojars and Chris Schmidt made a Python version and  
> disentangled it
> from the specifics of the FOAF spec/site. Their specgen4.py, as well  
> as
> the earlier specgen.py the last FOAF spec was built from, both require
> the compilation of Redland plus the Python bindings. Although  
> Redland is
> a solid, powerful and mature library, it can be tough to get the  
> Python
(Continue reading)


Gmane