Mqlreference guide MQL Reference Guide David Flanagan CMQL Reference Guide David Flanagan Published - - Copyright ? Metaweb Technologies Inc CTable of Contents Introduction The Metaweb Query API About this Manual Metaweb Architecture Nodes and Relationshi

MQL Reference Guide David Flanagan CMQL Reference Guide David Flanagan Published - - Copyright ? Metaweb Technologies Inc CTable of Contents Introduction The Metaweb Query API About this Manual Metaweb Architecture Nodes and Relationships Properties Properties and Uniqueness Properties and Direction Properties and Meaning Names Identi ?ers and Namespaces Objects and Types Universal Properties Types and Domains Value Types Properties of Value Types type int type oat type boolean type text type rawstring type uri type datetime type key type id Object Types Core Types Common Types Access Control The Metaweb Query Language JavaScript Object Notation JSON Literals null true false JSON Numbers JSON Strings JSON Arrays JSON Objects Basic MQL Queries Our First Query Query Response Symmetry Object IDs Multiple Results and Uniqueness Errors Nested Sub-queries Inverting Queries Asking Metaweb For Objects Expanded Values and Default Properties Review Asking for Values Names Ids Keys and Namespaces iii C Names and Per-Language Uniqueness Ids Keys and Namespaces Namespaces and Uniqueness Enumerations GUIDs Property Names in MQL Queries Simple and Quali ?ed Property Names Property Pre ?xes Wildcards Inverting a Property with Property Objects MQL Directives Limiting Results Counting Results Sorting Results Ordered Collections Optional Matches Forbidden Matches MQL Operators Order Constraints Pattern Matching with the Operator The one of Operator The but not Operator Expressing AND OR and NOT in MQL Links Re ection and History Links to Sub-queries Toplevel Links Re ection History Metaweb Read Services Basic mqlread Queries with Perl A Better Perl Album Lister The mqlread Service The query Request Parameter The queries Request Parameter The Response Envelope Envelope Parameters The callback Request Parameter mqlread Error Codes A Python Album Lister A Metaweb-enabled PHP Application Metaweb Queries with JavaScript Invoking mqlread with the jQuery Library Listing Albums and Tracks with JavaScript Client-side MQL Queries with Enter the name of a band C MQL Reference Guide Listing Albums and Tracks with JavaScript Example is a more complicated example than Example in addition to listing albums by a band it can also list tracks on an album Its output is pictured in Figure In addition to its more sophisticated output it does not rely on the jQuery library instead performing HTML document creation and manipulation using lower-level DOM calls Example depends on two external modules json js is the public-domain JSON parser and serializer that we used in Example The second module of external code is metaweb js This module whose code listed in Example de ?nes the utility function Metaweb read that submits a MQL query through a Enter the name of a band C MQL Reference Guide Client-side MQL Queries with C MQL Reference Guide Enter the name of a band Fetching Content with trans As explained in Chapter Metaweb is really two databases in one One database is the graph of nodes and relationships The second is the content store that holds chunks or blobs of data such as HTML documents and graphical images We use mqlread service to retrieve data from the graph and we

  • 33
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager
  • Détails
  • Publié le Jui 06, 2021
  • Catégorie Administration
  • Langue French
  • Taille du fichier 389.5kB