Hi Alessandro, With http://svn.apache.org/viewvc?rev=1303322&view=rev this should now work as expected. It would be cool if you could test this. My tests worked as expected.
regarding your question about the entity prefixes: This is only used by the ReferencedSiteManager component to decide based on the URI if an ReferencedSite need to be asked on requests for an entity. So it only affects requests for dereferencing entities via the "/entityhub/sites" endpoint. It is NOT used as base URL. In the case of "revyu" you can set "http://revyu.com/" as prefix as all entities defined by this site do use this as common prefix. best Rupert On Tue, Mar 20, 2012 at 4:50 PM, Alessandro Adamou <[email protected]> wrote: > Thanks a lot Rupert, > > >> The answer is very easy. The Sparql searcher uses N3 as default >> serialization and this SPARQL endpoint simple ignores that and returnes >> rdf+xml. >> >> If I change the default in the code to "application/rdf+xml" at least >> /find queries work as expected >> >> Maybe we should change the default to rdf+xml? > > > That could be an idea, but we should let the statistics decide. If there are > so many more that support rdf+xml and not n3, perhaps we should. > > Update: if I use CoolURI for dereferencing and set the access URI as simply > http://revyu.com I do get some results. I would still prefer Sparql, but I > can work with this in the meantime. > > Best, > > Alessandro > > > >> On 20.03.2012, at 16:24, Alessandro Adamou wrote: >> >>> Sorry again, I meant that the last three prefixes end with slashes. >>> >>> http://purl.org/stuff/rev# >>> http://revyu.com/things/ >>> http://revyu.com/reviews/ >>> http://revyu.com/people/ >>> >>> For clarity, with these settings the referencedSiteMgr.getEntity(uri) is >>> returning non-null but empty Entity objects, no matter if the entity URI >>> exists or is made up. >>> >>> Best, >>> Alessandro >>> >>> >>> On 3/20/12 4:19 PM, Alessandro Adamou wrote: >>>> >>>> I add that it didn't work even after setting these entity prefixes: >>>> >>>> http://purl.org/stuff/rev# >>>> http://revyu.com/things >>>> http://revyu.com/reviews >>>> http://revyu.com/people >>>> >>>> >>>> On 3/20/12 4:07 PM, Alessandro Adamou wrote: >>>>> >>>>> Hi Rupert, >>>>> >>>>> I've been trying to setup a referenced site for revyu.com, not caching >>>>> to begin with, but I can't seem to be able to obtain entity signatures >>>>> with >>>>> my configuration. >>>>> >>>>> The Web version of the SPARQL endpoint (originally at >>>>> http://revyu.com/sparql , supports GET with parameter "query") is at >>>>> http://revyu.com/sparql/queryform >>>>> >>>>> Note from the example there that it accepts unprefixed references such >>>>> as<people/tom> . >>>>> >>>>> It does resolve http://revyu.com/people/tom , although you always get a >>>>> 303 See Other >>>>> >>>>> (e.g. http://revyu.com/people/tom/about/rdf if the request had "Accept: >>>>> application/rdf+xml" , or http://revyu.com/people/tom/about/html for >>>>> text/html) >>>>> >>>>> This is my site configuration (using sparql for dereferencing too). Any >>>>> idea what I am doing wrong? >>>>> >>>>> ID = revyu >>>>> name = Revyu >>>>> Entity prefix = http://purl.org/stuff/rev# >>>>> Access URI = http://revyu.com/sparql >>>>> Dereferencer implementation = SPARQL >>>>> Query service = http://revyu.com/sparql >>>>> Searcher implementation = SPARQL >>>>> Default symbol state = proposed >>>>> Default mapping state = proposed >>>>> Expire = none >>>>> Cache strategy = never >>>>> >>>>> The entityhub debug log doesn't seem to throw errors, warnings or odd >>>>> messages. >>>>> >>>>> Thanks >>>>> >>>>> Alessandro >>>>> >>>>> -- >>>>> M.Sc. Alessandro Adamou >>>>> >>>>> Alma Mater Studiorum - Università di Bologna >>>>> Department of Computer Science >>>>> Mura Anteo Zamboni 7, 40127 Bologna - Italy >>>>> >>>>> Semantic Technology Laboratory (STLab) >>>>> Institute for Cognitive Science and Technology (ISTC) >>>>> National Research Council (CNR) >>>>> Via Nomentana 56, 00161 Rome - Italy >>>>> >>>>> >>>>> "I will give you everything, so long as you do not demand anything." >>>>> (Ettore Petrolini, 1930) >>>>> >>>>> Not sent from my iSnobTechDevice >>>> >>>> >>> >>> -- >>> M.Sc. Alessandro Adamou >>> >>> Alma Mater Studiorum - Università di Bologna >>> Department of Computer Science >>> Mura Anteo Zamboni 7, 40127 Bologna - Italy >>> >>> Semantic Technology Laboratory (STLab) >>> Institute for Cognitive Science and Technology (ISTC) >>> National Research Council (CNR) >>> Via Nomentana 56, 00161 Rome - Italy >>> >>> >>> "I will give you everything, so long as you do not demand anything." >>> (Ettore Petrolini, 1930) >>> >>> Not sent from my iSnobTechDevice >>> >> > > > -- > M.Sc. Alessandro Adamou > > Alma Mater Studiorum - Università di Bologna > Department of Computer Science > Mura Anteo Zamboni 7, 40127 Bologna - Italy > > Semantic Technology Laboratory (STLab) > Institute for Cognitive Science and Technology (ISTC) > National Research Council (CNR) > Via Nomentana 56, 00161 Rome - Italy > > > "I will give you everything, so long as you do not demand anything." > (Ettore Petrolini, 1930) > > Not sent from my iSnobTechDevice > -- | Rupert Westenthaler [email protected] | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen
