[Developers] pattern-matching syntax for =~ constraint in MQL

Christine Weibel xtine at metaweb.com
Wed Apr 23 17:35:56 UTC 2008


ah.  got it.

{
  "q1" : {
    "query" : [
      {
        "a:name" : {
          "optional" : "forbidden",
          "value~=" : "\"love you\""
        },
        "b:name~=" : "love",
        "c:name~=" : "you",
        "name" : null,
        "type" : "/common/topic"
      }
    ]
  }
}

bug filed.

----- Original Message -----
From: "John Giannandrea" <jg at metaweb.com>
To: "For discussions about MQL, Freebase API and apps built on Freebase" <developers at freebase.com>
Sent: Tuesday, April 22, 2008 9:51:21 PM (GMT-0800) America/Los_Angeles
Subject: Re: [Developers] pattern-matching syntax for =~ constraint in MQL


As David has discovered, you have to embed quotes in the string, as  
in  "value~=" : "\"love you\""
I think this is a bug in MQL and should get fixed.

-jg

_______________________________________________
Developers mailing list
Developers at freebase.com
http://lists.freebase.com/mailman/listinfo/developers



More information about the Developers mailing list