Hi Sherman,

I see what you mean and this does look like a bug or configuration issue probably as a result of the recent server update. I shall notify development for it to be looked into ...

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support



On 22 May 2009, at 19:52, Sherman Monroe wrote:

Hi Hugh,

I notice the results there look like HTML even though you requested XML. Is that not a bug? I ask because I'm now having problems with content negotiation, and I haven't touched the code that deals with that. In addition, I now can not get a query to run on the razorbase.com site, and the code there hasn't been modified (since before this error). Here are my request headers, the XML query, and the response from server (the program's command prompt output):

Request Headers:
Content-Type=text/xml; charset="UTF-8"


Query xml string:
<?xml version="1.0" standalone="yes"?><query timeout='2000' xmlns='http://openlinksw.com/services/facets/1.0'><text property='http://www.w3.org/2000/01/rdf-schema#label'>Amazon</ text><property iri='http://www.w3.org/1999/02/22-rdf-syntax- ns#type'></property><view offset='0' limit='25' type='list'></ view></query>


Error sent from server:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>406 Not Acceptable</title>
</head><body>
<h1>406 Not Acceptable</h1>
<p>An appropriate representation of the requested resource service could not be found on this server.</p>
Available variant(s):
<ul>
<li><a href="service">service</a> , type text/xml, charset UTF-8</li>
</ul>
</body></html>


-sherman


On Fri, May 22, 2009 at 12:24 PM, Hugh Williams <[email protected]> wrote:
Hi Sherman,

This works for me also having run multiple times:

hugh-williams-computer-1614:~ hughwilliams$ more sherman1.xml
<?xml version="1.0" standalone="yes"?><query timeout='2000' xmlns='http://openlinksw.com/services/facets/1.0'><property iri='http://www.w3.org/1999/02/22-rdf-syntax-ns#type'><value datatype='uri '>http://umbel.org/umbel/sc/Person</value></property><value datatype='uri'>http://dbpedia.org/resource/Drew_Barrymore</ value><property iri='http://dbpedia.org/property/reference'></ property><val ue datatype='uri'>http://dbpedia.org/resource/Drew_Barrymore</ value><view offset='0' limit='250' type='text'></view></query> hugh-williams-computer-1614:~ hughwilliams$ curl -H "Content-Type: text/xml" -d @sherman1.xml http://lod.openlinksw.com
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<title>Entity Search, Find, and Explore</title>
<link rel="stylesheet" media="screen" type="text/css" href="styles/ default.css"/>
<script type="text/javascript" >
    var featureList=["map", "combolist", "ajax2", "tab", "json"];
</script>
<script type="text/javascript" src="oat/toolkit/loader.js"></script>
<script type="text/javascript" src="facet.js"></script>
</head>
<body>
<div id="PG">
<div id="HD">
  <a href="http://www.openlinksw.com"; class="logo">
<img id="opl_logo" src="/fct/images/openlink_site_logo.png" alt="OpenLink Software"/>
  </a>
</div><!-- #HD -->
<div id="MD">

  <div id="main_srch" style="display: none">
    <div id="TAB_ROW">
      <div class="tab" id="TAB_TXT">Text Search</div>
      <div class="tab" id="TAB_URILBL">URI Lookup (by Label)</div>
      <div class="tab" id="TAB_URI">URI Lookup</div>
      <div class="tab_act">
<a href="/fct/facet.vsp? cmd=featured&sid=65937&no_qry=1">Featured Queries</a>
        &nbsp;|&nbsp;
        <a href="/b3s/">Demo Queries</a>
        &nbsp;|&nbsp;
        <a href="facet_doc.html">About</a>
      </div>
    </div> <!-- #TAB_ROW -->
    <div id="TAB_CTR">
    </div> <!-- #TAB_CTR -->
    <div id="TAB_PAGE_TXT" class="tab_page" style="display: none">
      <h2>Entity Search, Find, and Explore</h2>
      <form method="post"
            action="/fct/facet.vsp?cmd=text&sid=65937" >
        <div id="new_srch">
          <label class="left_txt"
                 for="new_search_txt">Search Text</label>
          <input id=  "new_search_txt"
                 size="60"
                 type="text"
                 name="search_for"/>
          <input type=submit  value="Search"><br/>
        </div>
      </form>
    </div> <!-- #TAB_PAGE_TXT -->
    <div id="TAB_PAGE_URILBL" class="tab_page" style="display: none">
      <h2>Entity Search, Find, and Explore</h2>
      <form method="get" action="/describe/" id="new_lbl_fm">
        <input type="hidden" name="url" id="new_lbl_val"/>
        <input type="hidden" name="sid" value="65937"/>
        <input type="hidden" name="urilookup" value="1"/>
      </form>
      <div id="new_uri">
        <label class="left_txt"
               for=  "new_lbl_txt">Label</label>

        <input id=  "new_lbl_txt"
               size="60"
               type="text"
               autocomplete="off"/>

        <button id="new_lbl_btn">Describe</button><br/>
      </div>

    </div>
    <div id="TAB_PAGE_URI" class="tab_page" style="display: none">
      <h2>Entity Search, Find, and Explore</h2>
      <form method="get" action="/describe/" id="new_uri_fm">
        <input type="hidden" name="url" id="new_uri_val"/>
        <input type="hidden" name="sid" value="65937"/>
        <input type="hidden" name="urilookup" value="1"/>
      </form>
      <div id="new_uri">
        <label class="left_txt"
               for=  "new_uri_txt">URI</label>

        <input id=  "new_uri_txt"
               size="60"
               type="text"
               autocomplete="off"/>
        <button id="new_uri_btn">Describe</button><br/>
      </div>
    </div> <!-- #TAB_PAGE_URI -->
  </div> <!-- #main_srch -->
  <div class="main_expln"><br/>
    Faceted Search &amp; Find Service<br/>
  </div>

</div><!-- #MD -->
<div id="FT">
<a href="http://virtuoso.openlinksw.com/";><img src="/fct/images/ virt_power_no_border.png" alt="Powered by OpenLink Virtuoso"/></a> <a href="http://linkeddata.org";><img src="/fct/images/ LoDLogo.gif" alt="Linked Data"/></a><br/> <span class="copyright">Copyright &copy; 2009 OpenLink Software</ span>
  <div id="FT_L"></div>
  <div id="FT_R"></div>
</div>
</div> <!-- #PG -->
</body>
</html>

hugh-williams-computer-1614:~ hughwilliams$

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support



On 22 May 2009, at 16:56, Sherman Monroe wrote:

Hugh,

It occurs fairly often (~ 30% of the time). Here is another error, this time with the error diagnostics from the server. I think it has to do with the 'dirty data' issue, could it be that somehow some dirty URIs or labels got into the SPARQL?. I don't see any weird characters in the query:

Query xml string:

<?xml version="1.0" standalone="yes"?><query timeout='2000' xmlns='http://openlinksw.com/services/facets/1.0'><property iri='http://www.w3.org/1999/02/22-rdf-syntax-ns#type'><value datatype='uri'>http://umbel.org/umbel/sc/Person</value></ property><value datatype='uri'>http://dbpedia.org/resource/ Drew_Barrymore</value><property iri='http://dbpedia.org/property/ reference'></property><value datatype='uri'>http://dbpedia.org/ resource/Drew_Barrymore</value><view offset='0' limit='250' type='text'></view></query>


Error Msg:

<error>
<code>37000</code>
<message>Error while executing query</message>
<diagnostics>SQ074: Line 21: SP030: SPARQL compiler, line 1: syntax error at &#39;)&#39; before &#39;,&#39; at &#39;)&#39; before &#39;xx&#39;</diagnostics>
</error>

-sherman






--

Thanks,
-sherman

I pray that you may prosper in all things and be healthy, even as your soul prospers
(3 John 1:2)
---------------------------------------------------------------------- --------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________
Virtuoso-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-devel

Reply via email to