Mischa Tuffield | 3 Aug 2011 02:46
Favicon

[foaf-dev] foaf validator

Hi all, 

Thought I would mail this list, as you foafs are the most likely to care.

I have got the foaf validator thing we worked on up and online again :


I will stick the code up on github soon (currently includes code which should be submodule'd or something), be warned it is nasty, but does the trick. 

I am in the process (albeit rather slow one) of resurrecting most of foaf.qdos.com. Will update when I get round it to slowly but surely... My priorities at the moment are this, foafbuilder UI, and then the indexing...

In the meanwhile comments and feedback re: validator most welcomed - note that I am aware that it is currently running against an old version of the foaf rdfs, will update accordingly tomorrow. Perhaps some sort of WebID validation thing would be good... ?

Mischa
___________________________________
Mischa Tuffield PhD
Homepage - http://mmt.me.uk/
+44(0)208 439 8200  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD

_______________________________________________
foaf-dev mailing list
foaf-dev@...
http://lists.foaf-project.org/mailman/listinfo/foaf-dev
Bruce Whealton | 4 Aug 2011 07:53
Gravatar

[foaf-dev] FOAF in RDFa, Using dcterms with foaf:Publication

I was curious as to whether one needs to use a vocabulary like bibo: bibliography for referencing publications, like books, magazines, etc.  I was given that recommendation at some point.  Are there not enough terms in dcterms to pretty much cover this?  It certainly is less complex.  Does anyone have experience using this?
 
Regarding RDFa, for specifying foaf data.  I haven’t been able to find an answer doing a search online as to whether various attributes can be used on almost any tag or is it only a few tags.  For example, this is how I used foaf:depiction
I don’t know if the resource attribute is redundant or not.
 
Thanks,
Bruce
 
 
_______________________________________________
foaf-dev mailing list
foaf-dev@...
http://lists.foaf-project.org/mailman/listinfo/foaf-dev
Jonas Smedegaard | 5 Aug 2011 20:08
X-Face
Face
Picon
Gravatar

Re: [foaf-dev] foaf validator

Hi Mischa,

On 11-08-03 at 01:46am, Mischa Tuffield wrote:
> Thought I would mail this list, as you foafs are the most likely to 
> care.
> 
> I have got the foaf validator thing we worked on up and online again :
> 
> http://foaf.qdos.com/validator/

[snip]

> comments and feedback re: validator most welcomed

I tried validating my own FOAF file:

http://foaf.qdos.com/validator/uri?URI=http://dr.jones.dk/me/index.rdf

I am puzzled about the results - seems to me that the warnings for tests 
1-3 is bogus as those allegedly missing declarations indeed exist in my 
file.  Or am I composing my FOAF data wrongly?

My FOAF file was generated from http://dr.jones.dk/me/index.ttl using 
mkfoaf.sh available below http://dr.jones.dk/foaf/ .

Any other other comments and criticism on my (fairly large) 
hand-maintained FOAF file is much appreciated.

 - Jonas

--

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
_______________________________________________
foaf-dev mailing list
foaf-dev@...
http://lists.foaf-project.org/mailman/listinfo/foaf-dev
Mischa Tuffield | 6 Aug 2011 01:18
Favicon

Re: [foaf-dev] foaf validator

Hi Jonas, 

On 5 Aug 2011, at 19:08, Jonas Smedegaard wrote:

Hi Mischa,

On 11-08-03 at 01:46am, Mischa Tuffield wrote:
Thought I would mail this list, as you foafs are the most likely to
care.

I have got the foaf validator thing we worked on up and online again :

http://foaf.qdos.com/validator/

[snip]

comments and feedback re: validator most welcomed

I tried validating my own FOAF file:

http://foaf.qdos.com/validator/uri?URI=http://dr.jones.dk/me/index.rdf

I am puzzled about the results - seems to me that the warnings for tests
1-3 is bogus as those allegedly missing declarations indeed exist in my
file.  Or am I composing my FOAF data wrongly?

Nothing in the validator is "official" or anything, it is just something I put together when I was processing lots of FOAF data a while back. 

With regards to why the validator is getting confused is because of the fact that when you parse http://dr.jones.dk/me/index.rdf none of the triples in the document talk about the URI which the document was fetched from. So yeah your foaf document has an rdf:type foaf:PersonalProfileDocument triple, but the subject of that tripe is <http://dr.jones.dk/me/> due to the use of :

xml:base="http://dr.jones.dk/me/" in your rdf:xml

FWIW, I believe the validator was only giving off "Warnings" not errors. If a crawler fetches a document at a given URI ,<http://example.com/foo>, it is fair enough for it to ask:

select ?type where {<http://example.com/foo> rdf:type ?type}

to find the type of the document this. Running a similar query on the RDF which is resolvable at the end of your foaf document URI (as pasted into the validator - http://dr.jones.dk/me/index.rdf) would returning nothing, hence the warnings. The other subsequent warnings are as a result of similar issues. 


My FOAF file was generated from http://dr.jones.dk/me/index.ttl using
mkfoaf.sh available below http://dr.jones.dk/foaf/ .

yay to ttl :) I will have a look at mkfoaf.sh at some point ...



Any other other comments and criticism on my (fairly large)
hand-maintained FOAF file is much appreciated.

Am liking your arabic foaf:nick, 
يونس
In Farsi we have a sound closer to the english "Je" than the arabic "You" sounding letter at the start of the foaf:nick, you could also add a:

<foaf:nick>جنس</foaf:nick>

Otherwise it all looks good, /me waves and says thanks in public for all the debian stuff you have been doing, THANK YOU! 

Mischa *goes back to watching "Walking Dead" ...



- Jonas

--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

[x] quote me freely  [ ] ask before reusing  [ ] keep private
_______________________________________________
foaf-dev mailing list
foaf-dev-RyYwo1q5J+qsOXdr9/+iAcXXUOn6P5/W@public.gmane.orgt.org
http://lists.foaf-project.org/mailman/listinfo/foaf-dev

___________________________________
Mischa Tuffield PhD
Homepage - http://mmt.me.uk/
+44(0)208 439 8200  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD

_______________________________________________
foaf-dev mailing list
foaf-dev@...
http://lists.foaf-project.org/mailman/listinfo/foaf-dev
Jonas Smedegaard | 6 Aug 2011 02:13
X-Face
Face
Picon
Gravatar

Re: [foaf-dev] foaf validator

On 11-08-06 at 12:18am, Mischa Tuffield wrote:
> Hi Jonas, 
> 
> On 5 Aug 2011, at 19:08, Jonas Smedegaard wrote:
> > I tried validating my own FOAF file:
> > 
> > http://foaf.qdos.com/validator/uri?URI=http://dr.jones.dk/me/index.rdf
> > 
> > I am puzzled about the results - seems to me that the warnings for 
> > tests 1-3 is bogus as those allegedly missing declarations indeed 
> > exist in my file.  Or am I composing my FOAF data wrongly?

> when you parse http://dr.jones.dk/me/index.rdf none of the triples in 
> the document talk about the URI which the document was fetched from. 
> So yeah your foaf document has an rdf:type 
> foaf:PersonalProfileDocument triple, but the subject of that tripe is 
> <http://dr.jones.dk/me/> due to the use of :
> 
> xml:base="http://dr.jones.dk/me/" in your rdf:xml

Ah.  Thanks!

I have fought for a long time to both support content-negotiation and 
serve RDF as nice directory URLs rather than exposing the ugly 
extension.  I use Apache2 but haven't figured out how to make it rank 
RDF higher than GPG sigs.

> FWIW, I believe the validator was only giving off "Warnings" not 
> errors.

Yes.  I strive for perfection, and thus want also warnings fixed. :-)

> > My FOAF file was generated from http://dr.jones.dk/me/index.ttl 
> > using mkfoaf.sh available below http://dr.jones.dk/foaf/ .
> 
> yay to ttl :) I will have a look at mkfoaf.sh at some point ...

There is not much to the script, actually.  The other scripts in same 
dir might be more interesting ;-)

Took me some time to find a method that works both ways: I can generate 
RDF and from the RDF generate the exact same Turtle file.  Added that 
reverse script now as well: rdf2turtle.sh

Oh, btw: I thought I'd done the WoT setup properly using GPG signing.  
What am I missing there to be "compliant" with your validator?

> Am liking your arabic foaf:nick, 
> يونس
> In Farsi we have a sound closer to the english "Je" than the arabic 
> "You" sounding letter at the start of the foaf:nick, you could also 
> add a:
> 
> <foaf:nick>جنس</foaf:nick>

Great. Added now!

> Otherwise it all looks good, /me waves and says thanks in public for 
> all the debian stuff you have been doing, THANK YOU!

Thanks for the kind words.

> Mischa *goes back to watching "Walking Dead" ...

Hmm - didn't know that one.  Seems interesting!

 - Jonas

--

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
_______________________________________________
foaf-dev mailing list
foaf-dev@...
http://lists.foaf-project.org/mailman/listinfo/foaf-dev
Mischa Tuffield | 6 Aug 2011 12:08
Favicon

Re: [foaf-dev] foaf validator

Good morning, 

On 6 Aug 2011, at 01:13, Jonas Smedegaard wrote:

On 11-08-06 at 12:18am, Mischa Tuffield wrote:
Hi Jonas,

On 5 Aug 2011, at 19:08, Jonas Smedegaard wrote:
I tried validating my own FOAF file:

http://foaf.qdos.com/validator/uri?URI=http://dr.jones.dk/me/index.rdf

I am puzzled about the results - seems to me that the warnings for
tests 1-3 is bogus as those allegedly missing declarations indeed
exist in my file.  Or am I composing my FOAF data wrongly?

when you parse http://dr.jones.dk/me/index.rdf none of the triples in
the document talk about the URI which the document was fetched from.
So yeah your foaf document has an rdf:type
foaf:PersonalProfileDocument triple, but the subject of that tripe is
<http://dr.jones.dk/me/> due to the use of :

xml:base="http://dr.jones.dk/me/" in your rdf:xml

Ah.  Thanks!

I have fought for a long time to both support content-negotiation and
serve RDF as nice directory URLs rather than exposing the ugly
extension.  I use Apache2 but haven't figured out how to make it rank
RDF higher than GPG sigs.

So, yeah the problem the validator is choking is because of its turtle parser isn't great. This is a bug in the RAP PHP library, which isn't maintained anymore, I have forked it in github, and will look into why n3 parser is crapping out in the future, but not today...

But to your point above, your apache setup isn't quite right: 

When i : 

`curl  -H 'Accept: application/rdf+xml, application/rdf+turtle, application/x-turtle, text/turtle, application/xml, */*' 'http://dr.jones.dk/me/'

I get back turtle ... 

RAP's rdfxml parser is way better than its turtle/n3 one, if you could have a look at your http://dr.jones.dk/me/ to make it return RDF/XML when a client says it prefers it then the validator will work, till i look at the n3 parsing. 

This is the best description of how to set up your apache instance to server up conneg'd RDF:




FWIW, I believe the validator was only giving off "Warnings" not
errors.

Yes.  I strive for perfection, and thus want also warnings fixed. :-)

Hehe 



My FOAF file was generated from http://dr.jones.dk/me/index.ttl
using mkfoaf.sh available below http://dr.jones.dk/foaf/ .

yay to ttl :) I will have a look at mkfoaf.sh at some point ...

There is not much to the script, actually.  The other scripts in same
dir might be more interesting ;-)

Took me some time to find a method that works both ways: I can generate
RDF and from the RDF generate the exact same Turtle file.  Added that
reverse script now as well: rdf2turtle.sh

Um, I think there is some confusion when you use the term 'RDF', you seem to use it to refer to RDF/XML. This is not the case, 'RDF' is a data model as per the 'RDF Concepts/Abstract syntax' W3C note, RDF/XML (ugly) and Turtle (pretty) are both serialisation of the RDF data-model... A minor point, thought you appreciate it though.

Furthermore, libraptor, and the command line tool which comes with it `rapper`, is totally the tool of awesome you want when converting between the various RDF serialisations. You must have that installed on your machine, I recall you pointing to the ubuntu bug report (which I didn't understand) about libraptor1 and libraptor2 dependency stuff.. hrrmm. You should totally check it out, it is an awesome bit of RDF conversion magic. And finally on this rant, I keep saying this `if libraptor can't parse it, it isn't RDF ...` :)


Oh, btw: I thought I'd done the WoT setup properly using GPG signing.  
What am I missing there to be "compliant" with your validator?

You have the following relevant triples

Which are fine I guess, but they are leaving "a lot to the imagination", what my validator is checking for is for more of the details of your GPG key to be listed within the RDF, so that one does need to understand signatures and stuff at the point of parsing the RDF.

The validator is looking for a thing, which has some details, and which is related to a foaf:Person URI, the foaf:Person URI of the foaf:primaryTopic of the foaf:Document which has a wot:assurance. 

This is what I have in my foaf file, and it is pretty much what the validator is looking for (yes, based on my reading of the WoT ontology, but I am open to suggestions): 


I.e. This is a document about a person, it talks about lots of people, but the primary focus of the document is Alice. The document has an assurance document, which is signed by a PubKey, which is an identity of Alice, our protagonist... 

I hope that helps!

Mischa


Am liking your arabic foaf:nick,
يونس
In Farsi we have a sound closer to the english "Je" than the arabic
"You" sounding letter at the start of the foaf:nick, you could also
add a:

<foaf:nick>جنس</foaf:nick>

Great. Added now!


Otherwise it all looks good, /me waves and says thanks in public for
all the debian stuff you have been doing, THANK YOU!

Thanks for the kind words.


Mischa *goes back to watching "Walking Dead" ...


Hmm - didn't know that one.  Seems interesting!


- Jonas

--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

[x] quote me freely  [ ] ask before reusing  [ ] keep private
_______________________________________________
foaf-dev mailing list
foaf-dev-RyYwo1q5J+qsOXdr9/+iAcXXUOn6P5/W@public.gmane.orgt.org
http://lists.foaf-project.org/mailman/listinfo/foaf-dev

___________________________________
Mischa Tuffield PhD
Homepage - http://mmt.me.uk/
+44(0)208 439 8200  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD

_______________________________________________
foaf-dev mailing list
foaf-dev@...
http://lists.foaf-project.org/mailman/listinfo/foaf-dev
Karen Coyle | 6 Aug 2011 15:46
Gravatar

Re: [foaf-dev] FOAF in RDFa, Using dcterms with foaf:Publication

Quoting Bruce Whealton <bruce@...>:

> I was curious as to whether one needs to use a vocabulary like bibo:  
> bibliography for referencing publications, like books, magazines,  
> etc.  I was given that recommendation at some point.  Are there not  
> enough terms in dcterms to pretty much cover this?  It certainly is  
> less complex.  Does anyone have experience using this?

DC lacks specific terms for journal title (as opposed to article or  
primary resource title), volume and number, as well as page ranges.  
BIBO uses DC for title, agent, contributor, etc., but defines the  
journal article specific terms in its own name space.

kc

>
> Regarding RDFa, for specifying foaf data.  I haven?t been able to  
> find an answer doing a search online as to whether various  
> attributes can be used on almost any tag or is it only a few tags.   
> For example, this is how I used foaf:depiction
> <img rel="foaf:depiction"  
> resource="http://brucewhealton.us/photos/BruceCloseup.jpg"  
> src="http://brucewhealton.us/photos/BruceCloseup.jpg"/>
> I don?t know if the resource attribute is redundant or not.
>
> Thanks,
> Bruce
>
>

--

-- 
Karen Coyle
kcoyle@... http://kcoyle.net
ph: 1-510-540-7596
m: 1-510-435-8234
skype: kcoylenet
Damian Steer | 6 Aug 2011 16:07
Picon

Re: [foaf-dev] FOAF in RDFa, Using dcterms with foaf:Publication


On 4 Aug 2011, at 06:53, Bruce Whealton wrote:

> I was curious as to whether one needs to use a vocabulary like bibo: bibliography for referencing
publications, like books, magazines, etc.  I was given that recommendation at some point.  Are there not
enough terms in dcterms to pretty much cover this?  It certainly is less complex.  Does anyone have
experience using this?

As Karen says, bibo is an extension of dc, not an alternative to it. The bibo documentation uses dc in many
places, [1] and it's possible to follow the bibo docs and not use anything from the bibo namespace. [2]

> Regarding RDFa, for specifying foaf data.  I haven’t been able to find an answer doing a search online as
to whether various attributes can be used on almost any tag or is it only a few tags.  For example, this is how I
used foaf:depiction
> <img rel="foaf:depiction" resource="http://brucewhealton.us/photos/BruceCloseup.jpg"  src="http://brucewhealton.us/photos/BruceCloseup.jpg"/>
> I don’t know if the resource attribute is redundant or not.

Well it's redundant in the sense that you have repeated the url, but to remove the repetition you need to
rearrange a little:

<span rel="foaf:depiction">
    <img src="http://brucewhealton.us/photos/BruceCloseup.jpg"/>
</span>

(you may have a suitable enclosing tag already)

And yes, you can use RDFa attributes everywhere. If you care about validation you'll need the rdfa+xhtml dtd.

Damian

[1] <http://bibotools.googlecode.com/svn/bibo-ontology/trunk/doc/index.html>
[2] Bibo is partly a way to use dc, foaf etc, together with some more specialised terms introduced where
other vocabs have gaps. The former aspect is sometimes called an 'application profile' in the dc community.
Boris Reitman | 7 Aug 2011 07:10
Picon

[foaf-dev] looking for contract remote job

if you know anyone hiring, let me know.

---

BORIS REITMAN - Resume

  - Senior Web Developer: Perl, Javascript, ActionScript.
  - Reside in Vancouver, Canada
  - Can work in United States

SHORT TERM CONTRACTS

  SolarEdge, Spring 2011
    - Interactive map of solar panel installations.
    - Zoom, pan, miniview, tree rendering, energy output graph, time animation.
    - Flex, Blaze, Webservices

  PlyMedia, 2011, April
    - Video-based ads in flash games
    - VAST ad-network integration
    - Flowplayer and JW Player
    - javascript, flash

  Skill-IQ, 2011 Jan - March
    - Human-Resources search engine
    - Lucene Solr customization
    - Test driven development TDD
    - Java, Perl, Php

  Play-My-Tone, 2010 Aug - Dec
    - Online editor for phone ringtones
    - Mp3 client processing, encoding, decoding, loading
    - Sound effects: fade, equalize. StandingWave2 framework.
    - Flex, Mate, Javascript, Webservices

  Kontera, Israel, 2010, 1 year
    - In-Text advertisements
    - 100,000 page views per day of my code.
    - Underlined words on Yahoo news articles.
    - Flash, Javascript, jQuery, performance optimization.
    - Ruby on Rails, JIRA integration, MongoDB, Agile development.
    - iPhone Safari, HTML5, SVG, jQuery mobile.

  CityTime/NYPD Bloomberg, New York, 2008 Nov - 2009 July
    Time Tracking system for NYPD (New York Police Department)
    Web Developer Javascript, Ext, XML/XSL
    - online time management application for City workers, including NYPD
    - 30,000 online NYPD users from New York area

  Actuality Systems, Boston, 2006 Feb - 2006 March
    Revolutionary 3D Volumetric Walk-around Display Technology
    Gentoo Linux Customizations
    - create a customized live gentoo cd for custom hardware
    - interface volumetric 3D display

LONG TERM EMPLOYMENT

  Sergata Outsourcing
    Senior Javascript, Flash/Flex Developer
    2009 Dec - 2011 Aug
    Israel
    - Web development contracts with various clients, client-side & server-side.

  RichFX.com, New York
    Web Developer in Perl, Javascript & Flex
    2007 Aug - 2008 Nov
    - live rich media addons to online pictures
    - zoom, rotation and video effects on 3rd party merchandize
    - browser performance optimization
    - fast, simple and robust integration with 3rd party sites
    - jquery, dojo, ext, actionscript, flex

  RichFX.com, New York
    Web Developer in Perl
    2004 Dec - 2006 Feb
    - generating online catalog in Flash
    - develop workflow based online interface for catalog management
    - test-first development
    - clients: Walmart, Vogue, Disney, Crate & Barrel, and others

  Sophos/ActiveState
    Spam Filtering Algorithms
    2003 May - 2004 Oct
    - text classification theory
    - Bayes, genetic algorithms, gateway-based filtering
    - research in machine learning, KDD conference participation.
    - spamassassin, mail-filter interface
    - improvements in perl compiler
    - perl, pthreads

  XRAYMEDIA.COM
    Tech Lead
    2000-2003
    - online interactive auction system
    - ajax application, ahead of its time (before the term "ajax" was coined)
    - oracle, xml, javascript, perl

  Coalescent Technologies Inc.
    Web Developer in Perl
    1997-2000
    - object oriented map to relational databases, Tangram, Castor
    - develop fault tolerant distributed software
    - newsgroup distributed scraping
    - web frameworks research

FAMILY BUSINESS SUPPORT

  Broadway Florists
    Website and desktop software for an online flower store
    Sep 2004-2007
    - front end and backend solution for a complete online flower store
    - SEO, custom shopping cart, web-scraping and data-feed, affiliate
    - www.broadwayflorists.com
    - WxWidgets

PERSONAL PROJECTS

  Online-TipJar.com
  4 man-months of work
  - A donation system enabling micropayments without transaction fees
  - Referenced by Free-Software-Foundation on my.fsf.org/donate/other/
  - css, non-standard fonts, fixed footer, custom graphics
  - implemented in pliant programming language
  - Paypal and Bitcoin integration
  - OpenID integration, JanRain
  - Website gadget, Amazon CDN
  - Debian client package

  Fafrik.com
  2 man-months of work
  - A collection of education and entertaining media
  - File conversion: .doc .ppt to .pdf, .wmv to .flv
  - Batch processing of emails, extracting attachments, MIME
  - Administrator management panel for approval of submissions
  - wiki-like editor for end users; information anonymizing
  - tools: perl, swftools, flash, open-office scripting
  - core implemented in pliant programming language

  CrossXHR, a solution for cross-domain ajax, using Flash
  - code.google.com/p/crossxhr/

  A demo site for the Pliant programing language
  - www.pliantcode.com

  SourceForge project for Pliant-Perl language integration
  - pliant-perl.sourceforge.net

  An online flower store, built with the Pliant programming language
  - www.broadwayflorists.com

JAVASCRIPT DEVELOPMENT

  Embeddable widgets, javascript performance optimizations,
  cross-domain XHR, memory management, reducing memory leaks, IE 6 and
  IE 7 development, Firebug, Firefox, interfacing with Flash, jQuery, Ext, Dojo.

  Sample: www.lilianvernon.com -- Bags & Accessories
   - Pointing with mouse produces a smooth popup.
   - Integration through script tag.

PERL DEVELOPMENT

  Integration of perl into another programming language:
    http://pliant-perl.sourceforge.net

  Powerpoint presentation at NY Perl Group:
    http://www.pliantcode.com/misc/pliant-perl-presentation/

  CPAN: WWW::Mechanize::Pliant

BROWSER Add-Ons

  Online-TipJar Project (add-on to make donations)
  Add-on for Firefox & bookmarklet for all browsers
  2009 June - 2009 October
    - on demand, pops a window to make a donation
    - firefox: toolbar button, bottom corner button, highligted text
context menu
    - uses Amazon CDN for fast delivery
    - full website with front-end and backend, to support the system

  Facemoods.com - (contract)
  Firefox Add-on to inject smileys into webmail applications
  2010 May
    - support GMail and other webmail
    - context-menu, toolbar button, bottom corner button
    - integrates with Facemoods internal API

OPEN SOURCE CONTRIBUTIONS

  Contributed to Pliant Programming Language
  2003 - Present
  - ms windows compatibility (install, services, clipboard)
  - efficient and robust template engine
  - high-availablity web server
  - web engine similar to GWT
  - inline perl interface
  - web gadgets engine
  - comet support

SOFTWARE BACKGROUND

  Design Patterns, Perl, Javascript, ActionScript, CSS, Flex 3, Oracle, PL/SQL,
  Postgres, object relational databases, WxWidgets, wxPerl, Win32 API,
  InnoSetup, Windows Services, Java<=>C++ interaction, Javascript<=>Flex
  interaction, Extreme Programming, javascript testing, flex testing,
  perl testing, Literate programming, NOWEB, LaTeX, linux servers,
  vserver, Amazon EC2, Google Gadgets, Facebook apps, Asterisk, DNS,
  Apache2/mod_perl, Vim, Bayes algorithm, Compilers, XML, TCP/IP stack,
  OpenGL, Twiddler, Machine Learning/Classification
  Firefox Extensions, Google Gadgets, Debian Packaging

EDUCATION BACKGROUND

  Bachelor of Science in Mathematics and Computer Science
  Simon Fraser University, Langara College, 1997-2003
    - Computer Science: Compiler, Hardware, OpenGL, Microcontrollers,
Complexity
    - Mathematics: Cryptography, Graphs, Groups, Combinatorics, Linear Algebra,
      Computer Algebra, Bayesian Analysis, Top 25% Putnam

LOCATION

  Vancouver, Canada

CONTACT

  gmail: boris.reitman
Jonas Smedegaard | 7 Aug 2011 14:23
X-Face
Face
Picon
Gravatar

Re: [foaf-dev] foaf validator

On 11-08-06 at 11:08am, Mischa Tuffield wrote:
> On 6 Aug 2011, at 01:13, Jonas Smedegaard wrote:
> > I have fought for a long time to both support content-negotiation 
> > and serve RDF as nice directory URLs rather than exposing the ugly 
> > extension.  I use Apache2 but haven't figured out how to make it 
> > rank RDF higher than GPG sigs.
> 
> So, yeah the problem the validator is choking is because of its turtle 
> parser isn't great. This is a bug in the RAP PHP library, which isn't 
> maintained anymore, I have forked it in github, and will look into why 
> n3 parser is crapping out in the future, but not today...

Uhm, possibly that issue plays a role too, but what I meant above was 
*not* that Turtle was served instead of RDF/XML, but that my current 
Apache2 content negotiation setup favors "*.rdf.pgp" over "*.rdf".

> But to your point above, your apache setup isn't quite right: 
> 
> When i : 
> 
> `curl  -H 'Accept: application/rdf+xml, application/rdf+turtle, application/x-turtle,
text/turtle, application/xml, */*' 'http://dr.jones.dk/me/'` 
> 
> I get back turtle ... 

I believe your test is flawed: when *both* leaving out "q" ratings and 
including a wildcard, it is essentially equal to this:

curl -H 'Accept: */*' 'http://dr.jones.dk/me/'

This is probably what you intended:

curl -H 'Accept: application/rdf+xml, application/rdf+turtle;q=0.5, application/x-turtle;q=0.4,
text/turtle;q=0.3, application/xml;q=0.2, */*;q=0.1' 'http://dr.jones.dk/me/'

...which delivers the RDF/XML format :-)

Alternatively if you wanted to test _my_ priorities then you should 
leave out the trailing wildcard, like this:

curl -H 'Accept: application/rdf+xml, application/rdf+turtle, application/x-turtle, text/turtle,
application/xml' 'http://dr.jones.dk/me/'

...which delivers the Turtle format.  Which is IMO not "wrong" of my 
setup, but wrong of you if really you favor RDF/XML over Turtle. :-)

The issue I raised is this:

curl -H 'Accept: application/rdf+xml, application/pgp-signature' 'http://dr.jones.dk/me/'

...which delivers the PGP signature rather than the RDF/XML.

Hmm.  It occurs to me just now that the GPG signature really isn't same 
content in a different format, so should simply use a different stem. 
Will try that after posting this (so the test right above hopefully 
leads to serving the RDF/XML pretty soon).

> RAP's rdfxml parser is way better than its turtle/n3 one, if you could 
> have a look at your http://dr.jones.dk/me/ to make it return RDF/XML 
> when a client says it prefers it then the validator will work, till i 
> look at the n3 parsing.

As argued above I claim that my server _does_ respect RDF/XML favored 
over Turtle - when properly hinted!

> This is the best description of how to set up your apache instance to 
> server up conneg'd RDF:
> 
> http://www.w3.org/TR/swbp-vocab-pub/ 

Thanks.  That is indeed a nice document (I knew it already).  Does not 
include GPG signing in its examples, though, which is (or was) my 
problem.

> > Took me some time to find a method that works both ways: I can 
> > generate RDF and from the RDF generate the exact same Turtle file.  
> > Added that reverse script now as well: rdf2turtle.sh
> 
> Um, I think there is some confusion when you use the term 'RDF', you 
> seem to use it to refer to RDF/XML. This is not the case, 'RDF' is a 
> data model as per the 'RDF Concepts/Abstract syntax' W3C note, RDF/XML 
> (ugly) and Turtle (pretty) are both serialisation of the RDF 
> data-model... A minor point, thought you appreciate it though.

You are right, off course.  And I appreciate being corrected!

> Furthermore, libraptor, and the command line tool which comes with it 
> `rapper`, is totally the tool of awesome you want when converting 
> between the various RDF serialisations.

Agreed. My scripts are essentially small wrappers around rapper.

> You must have that installed on your machine, I recall you pointing to 
> the ubuntu bug report (which I didn't understand) about libraptor1 and 
> libraptor2 dependency stuff.. hrrmm. You should totally check it out, 
> it is an awesome bit of RDF conversion magic. And finally on this 
> rant, I keep saying this `if libraptor can't parse it, it isn't RDF 
> ...` :)

I do not recall that conversation, but most likely I have referred to a 
_Debian_ bug (I am a Debian Developer and use only "the real thing", not 
Ubuntu or any other derivative).

> > Oh, btw: I thought I'd done the WoT setup properly using GPG 
> > signing.  What am I missing there to be "compliant" with your 
> > validator?
> 
> You have the following relevant triples

[details snip]

> Which are fine I guess, but they are leaving "a lot to the 
> imagination", what my validator is checking for is for more of the 
> details of your GPG key to be listed within the RDF,

[working example snipped]

Thanks.  Quite helpful.

No space in my brain to fully grasp that at the moment, though, so will 
postpone further tuning of my FOAF for later: Have a deadline on a 
webdesign for a client to reach before I go to CCCamp11 to promote 
FreedomBox on tuesday and one week forward.

Kind regards,

 - Jonas

P.S.

Gave "Walking dead" a try but is not to the liking of me and my 
girlfriend.  Thanks anyway for the (implicit) suggestion.

--

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
_______________________________________________
foaf-dev mailing list
foaf-dev@...
http://lists.foaf-project.org/mailman/listinfo/foaf-dev

Gmane