- From: Fabiano Luz <fabianocomp@gmail.com>
- Date: Mon, 6 Apr 2015 11:26:47 -0300
- To: Bijan Parsia <bparsia@cs.man.ac.uk>
- Cc: public-sparql-dev@w3.org
- Message-ID: <CA+haz6yQtPqFvMhf_9gP6cANWEgq=Xg-Cq_6dfiJ0c4A18jdqg@mail.gmail.com>
Hi guys the question is as follows. I'm working on a model of semantic parsing. I try to correlate a subset of natural language with a SPARQL subset. For example, for the phrase: "What Bob's phone number and e-mail?" We could represent through SPARQL: PREFIX p:<example#> SELECT ?A ?B {p:Bob p:phone ?B; p:email ?A} Note that there is a relationship between the amount of elements of the sentence and the query, so, is possible mapping in our model. Using the same reasoning for the phrase: "Which are Bob's and John's phone number?" Here, the ideal is a query that I need not repeat the word "phone" because, in my model, repeat terms implies in trick. In addition, the query needs to return a list of phones (Bob's phone and John's phone) and I can not use FILTER. best regards. On Thu, Mar 26, 2015 at 8:59 AM, Bijan Parsia <bparsia@cs.man.ac.uk> wrote: > I don’t understand the example or the goal. > > On 24 Mar 2015, at 16:48, Fabiano Luz <fabianocomp@gmail.com> wrote: > > Hello Folks, > > On the predicate lists we have omitted the subject, for example: > > ?x foaf:name ?name ; > foaf:mbox ?mbox . > > > This is clear. > > I wonder if there is some kind of "subject lists" where we omitted the > predicate, for example: > > foaf:Bob foaf:phone ?phone1; foaf:John ?phone2 . > > > Er.. not so much. Let me try reformatting: > > foaf:Bob foaf:phone ?phone1; > foaf:John ?phone2. > > Well, that syntax would be dreadful (as ambiguous) and not super readable > (contrary to the first one). I guess you could add a pro-predicate. > > foaf:Bob foaf:phone ?phone1; > foaf:John ^^^ ?phone2. > > That could be general purpose so the first example was sugar for: > > ?x foaf:name ?name ; > ^^^ foaf:mbox ?mbox . > > I don’t see the value. > > PS: I do not want to repeat the predicate. > > > Why not? What’s the use case? > > Cheers, > Bijan. > > -- Fabiano Ferreira Luz® Programador Delphi for win32/Java for Web
Received on Monday, 6 April 2015 14:27:15 UTC