0
我正在按照由Terry Halpin(鏈接下面所述)命名的邏輯數據建模教程,但無法插入數據。 https://www.brcommunity.com/articles.php?id=b760邏輯數據建模與logiQL
下面是代碼:
addblock 'Country(c), hasCountryCode(c:cc) -> string(cc).
Language(l), hasLanguageName(l:ln) -> string(ln).
isLarge(c) -> Country(c).
officiallyUses(c, l) -> Country(c), Language(l).
isMultilingual(c) <- officiallyUses(c, l1), officiallyUses(c, l2), l1 != l2.'
exec'
+isLarge("AU"), +isLarge("CA"), +isLarge("FR"), +isLarge("US").
+officiallyUses("AU", "English"), +officiallyUses("CA", "English").
+officiallyUses("CA", "French"), +officiallyUses("FR", "French").
+officiallyUses("LU", "French"), +officiallyUses("LU", "German").
+officiallyUses("LU", "Luxembourgish").
+officiallyUses("US", "English"), +officiallyUses("VA", "Italian"). '
錯誤消息:
任何人都可以請幫助我瞭解什麼是錯的?
嗨丹,非常感謝。完美的作品。 – kushol