percyliang / sempre

Semantic Parser with Execution
Other
828 stars 301 forks source link

Prefix "fb:" #215

Closed stbusch closed 3 years ago

stbusch commented 3 years ago

Hello, the tutorial says

fb:en.california is the canonical Freebase ID (always beginning with the prefix fb:)

Do I understand correctly that this prefix is part of the SPARQL syntax referring to Freebase (and not part of the Freebase syntax itself)?

thanks

ppasupat commented 3 years ago

Prefixing with ":" is part of the SPARQL syntax in standard SPARQL, but in SEMPRE, the prefix "fb:" is only a naming scheme and is not tied to the syntax.

The prefix "fb:" is originally used to denote entities and relations in Freebase. But after a while, we started using "fb:" to denote any arbitrary entities and relations, even ones outside Freebase.

stbusch commented 3 years ago

I see, thanks.