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

28 views
Skip to first unread message

Jeff Silverman

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

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

jeffs@jeffs-desktop:~$ 
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 
<rdf:RDF
      xmlns:foaf="http://xmlns.com/foaf/0.1/"
      xmlns:admin="http://webns.net/mvcb/">
<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:PersonalProfileDocument>
<foaf:Person rdf:ID="me">
<foaf:name>Jeff Silverman</foaf:name>
<foaf:title>Mr.</foaf:title>
<foaf:givenname>Jeff</foaf:givenname>
<foaf:family_name>Silverman</foaf:family_name>
<foaf:nick>Jeffrey</foaf:nick>
<foaf:mbox_sha1sum>32d8598264fe06b27f023a565ec01e5a41bff75e</foaf:mbox_sha1sum>
<foaf:homepage rdf:resource="https://jeffsilverman.ddns.net"/>
<foaf:schoolHomepage rdf:resource="https://www.hmc.edu/"/>
<foaf:knows>
<foaf:Person>
<foaf:name>Dozie Oguike </foaf:name>
<foaf:mbox_sha1sum>04c756f59cd3950b8833a3dbc20c80ae7ce20e06</foaf:mbox_sha1sum></foaf:Person></foaf:knows></foaf:Person>
</rdf:RDF>

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

Jeff


Message has been deleted

Jeff Silverman

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

I will go look at it in the morning.


Jeff


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

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).

Regards,
WP
--
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

unread,
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"},
"generator":"https://foaf-visualizer.gnu.org.ua/"}jeffs@jeffs-desktop:~$





Thank you

Jeff

Jeff Silverman

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

Hello,

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


Jeff

<?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:PersonalProfileDocument>
<foaf:Person rdf:about="https://swe.umbc.edu/~doguik1/foaf.rdf#me">

<foaf:name>Dozie Oguike</foaf:name>
<foaf:givenname>Dozie</foaf:givenname>
<foaf:family_name>Oguike</foaf:family_name>
<foaf:mbox_sha1sum>ae2d757a7d3855267ae1dd166d2d87d139904e04</foaf:mbox_sha1sum>
<foaf:phone rdf:resource="tel:4104874035"/>
<foaf:schoolHomepage rdf:resource="https://swe.umbc.edu/~doguik1/umbc.edu"/>
<foaf:knows>
<foaf:Person>
<foaf:name>Jianwu Wang</foaf:name>
<foaf:mbox_sha1sum>5167949437f69d601fd90caad5067e415985529e</foaf:mbox_sha1sum></foaf:Person></foaf:knows>
<foaf:knows>
<foaf:Person>
<foaf:name>Travez Hardin </foaf:name>
<foaf:mbox_sha1sum>3620869793e30d2f670465e12f24439bec69ea15</foaf:mbox_sha1sum></foaf:Person></foaf:knows>
<foaf:knows>
<foaf:Person>
<foaf:name>Morgan Aldore </foaf:name>
<foaf:mbox_sha1sum>564bf2ce1aa5a3779a047222339b367cff1b67be</foaf:mbox_sha1sum></foaf:Person></foaf:knows></foaf:Person>

  <fvx xmlns="https://foaf-visualizer.gnu.org.ua/">
    <uri>https://swe.umbc.edu/~doguik1/foaf.rdf</uri>
    <hash></hash>
    <hl></hl>
    <messagebundle>
      <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>
    </messagebundle>
  </fvx>

</rdf:RDF>
Reply all
Reply to author
Forward
0 new messages