I am having troubles getting a response from the visualizer. Please let me know if you read this message.

Skip to first unread message

Jeff Silverman

Apr 30, 2021, 5:12:44 PM4/30/21
to FOAF.Vix

I am a tutor and a student came to me for assistance with FOAF.  His foaf.rdf file works, mine does not.

When I try using the URL with a browser such as chrome or firefox, the browser tries to either save the file or invoke an application to run the file.  curl works as I would expect:

HTTP/1.1 200 OK
Date: Wed, 28 Apr 2021 16:50:47 GMT
Server: Apache
X-Powered-By: PHP/5.4.7
Content-Length: 0
Content-Type: text/html

Note that the content length is 0.  The exit status from curl is 0, which one would expect because curl has accurately rendered a zero length file.

My foaf.rdf file looks like:
pi@raspberrypi:~ $ cat /var/www/html/foaf.rdf 
<foaf:PersonalProfileDocument rdf:about="">
  <foaf:maker rdf:resource="#me"/>
  <foaf:primaryTopic rdf:resource="#me"/>
  <admin:generatorAgent rdf:resource="http://www.ldodds.com/foaf/foaf-a-matic"/>
  <admin:errorReportsTo rdf:resource="mailto:xxxxxxxx.com"/>
<foaf:Person rdf:ID="me">
<foaf:name>Jeff Silverman</foaf:name>
<foaf:homepage rdf:resource="https://jeffsilverman.ddns.net"/>
<foaf:schoolHomepage rdf:resource="https://www.hmc.edu/"/>
<foaf:name>Dozie Oguike </foaf:name>

pi@raspberrypi:~ $ 

BTW, nobody has posted on this group for over a decade, so if you read this message, then I'd like a response that you read it, if nothing else.

Thank you


Message has been deleted

Jeff Silverman

May 1, 2021, 3:30:20 AM5/1/21
to foaf...@googlegroups.com

I will go look at it in the morning.


On Fri, Apr 30, 2021 at 2:29 PM Wojciech Polak <wojcie...@gmail.com> wrote:

It seems that your URL "https://jeffsilverman.ddns.net/foaf.rdf" is returning
"Content-Type: application/octet-stream" instead of "Content-Type: application/rdf+xml" in the HTTP response header. Probably that is the case.
You can change this with your web server configuration (Nginx in your case).

You received this message because you are subscribed to a topic in the Google Groups "FOAF.Vix" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/foaf-vix/qOENto5uxq0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to foaf-vix+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/foaf-vix/3ef0a55c-525b-44bd-89a6-f54498da2649n%40googlegroups.com.

Jeff Silverman

May 2, 2021, 5:29:45 AM5/2/21
to foaf...@googlegroups.com
I tried that, and it worked quite nicely.

jeffs@jeffs-desktop:~$ curl -i "https://foaf-visualizer.gnu.org.ua/embed/json/?uri=https://jeffsilverman.ddns.net/foaf.rdf"
HTTP/1.1 200 OK
Date: Sat, 01 May 2021 15:58:04 GMT
Server: Apache/2.4.6 (Unix) OpenSSL/1.0.2m mod_wsgi/4.4.6 Python/3.6.6 PHP/5.4.20
X-Powered-By: PHP/5.4.20
Cache-Control: public, max-age=172800, must-revalidate
Last-Modified: Mon, 26 Apr 2021 10:38:44 GMT
ETag: "60869834-4bd"
Content-Length: 361
Content-Type: application/x-javascript; charset=UTF-8

{"vcard":{"fn":{"givenName":"Jeff","familyName":"Silverman"},"nick":["Jeffrey"],"photo":"https://jeffsilverman-aaaa.ddns.net/silverman_jeff.jpg","homepage":"https://jeffsilverman.ddns.net","school":["https://www.hmc.edu/"],"knows":[{"name":"Dozie Oguike "}],"source":"https://jeffsilverman.ddns.net/foaf.rdf"},

Thank you


Jeff Silverman

May 4, 2021, 4:34:39 PM5/4/21
to foaf...@googlegroups.com


I am using the visualizer using my own FOAF URL and my student's FOAF URL.  Both URLs work fine when I feed them to the visualizer from both Google Chrome and curl. (FYI, I am pasting the output from firefox below.  This is from the control-U key which shows the HTML or XML source).  I suspect the problem is either a bug in firefox or else Google chrome takes an ambiguity in a specification and does something different and better.  curl is very low level and frequently works when other things fail.

I am open to advice, please.  I would not be surprised if this is a problem that we cannot solve.

Also, I assume that there is an undirected network of FOAF servers.  How might I join such a network?

Thank you


<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://foaf-visualizer.gnu.org.ua/fvx-html.xsl?v=1.0"?>
<foaf:PersonalProfileDocument rdf:about="https://swe.umbc.edu/~doguik1/foaf.rdf">
  <foaf:maker rdf:resource="https://swe.umbc.edu/~doguik1/foaf.rdf#me"/>
  <foaf:primaryTopic rdf:resource="https://swe.umbc.edu/~doguik1/foaf.rdf#me"/>

  <admin:generatorAgent rdf:resource="http://www.ldodds.com/foaf/foaf-a-matic"/>

  <admin:errorReportsTo rdf:resource="mailto:le...@ldodds.com"/>
<foaf:Person rdf:about="https://swe.umbc.edu/~doguik1/foaf.rdf#me">

<foaf:name>Dozie Oguike</foaf:name>
<foaf:phone rdf:resource="tel:4104874035"/>
<foaf:schoolHomepage rdf:resource="https://swe.umbc.edu/~doguik1/umbc.edu"/>
<foaf:name>Jianwu Wang</foaf:name>
<foaf:name>Travez Hardin </foaf:name>
<foaf:name>Morgan Aldore </foaf:name>

  <fvx xmlns="https://foaf-visualizer.gnu.org.ua/">
      <msg id="poweredBy">powered by FOAF.Vix</msg>
      <msg id="theFoafEntry">The FOAF card</msg>
      <msg id="whatsThis?">what's this?</msg>
      <msg id="whatsThisTitle">See what Wikipedia says about FOAF</msg>
      <msg id="members">Members</msg>
      <msg id="unknownFormat">Unknown FOAF format</msg>
      <msg id="group:">Group:</msg>
      <msg id="nick:">Nick:</msg>
      <msg id="birthday:">Birthday:</msg>
      <msg id="dateOfBirth:">Date of birth:</msg>
      <msg id="weblog:">Blog:</msg>
      <msg id="email">E-mail</msg>
      <msg id="jabber">Jabber</msg>
      <msg id="icq">ICQ</msg>
      <msg id="msn">MSN</msg>
      <msg id="aim">AIM</msg>
      <msg id="yahoo">Yahoo</msg>
      <msg id="phone">Phone</msg>
      <msg id="www">WWW</msg>
      <msg id="onlineAccount:">Online account:</msg>
      <msg id="plan:">Plan:</msg>
      <msg id="geekcode:">Geek Code:</msg>
      <msg id="event:">Event:</msg>
      <msg id="currentProject:">Current project:</msg>
      <msg id="pastProject:">Past project:</msg>
      <msg id="school:">School:</msg>
      <msg id="interest:">Interest:</msg>
      <msg id="knows:">Knows:</msg>
      <msg id="more">more &#187;</msg>
      <msg id="seeAlso:">See also:</msg>
      <msg id="source">source</msg>
      <msg id="expand">expand</msg>
      <msg id="work">Work</msg>
      <msg id="workplace">Workplace</msg>
      <msg id="pubkey">Pubkey</msg>
      <msg id="homeAddress:">Home address:</msg>
      <msg id="officeAddress:">Office address:</msg>
      <msg id="description">Description</msg>

Reply all
Reply to author
0 new messages