B4M36DS2, BE4M36DS2: Database Systems 2
|
|
- Clarence Holt
- 5 years ago
- Views:
Transcription
1 B4M36DS2, BE4M36DS2: Database Systems 2 h p:// Lecture 2 Data Formats Mar n Svoboda mar n.svoboda@fel.cvut.cz Charles University in Prague, Faculty of Mathema cs and Physics Czech Technical University in Prague, Faculty of Electrical Engineering
2 Lecture Outline Data formats XML Extensible Markup Language JSON JavaScript Object Nota on BSON Binary JSON RDF Resource Descrip on Framework CSV Comma-Separated Values Protocol Buffers B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
3 XML Extensible Markup Language
4 Introduc on XML = Extensible Markup Language Representa on and interchange of semi-structured data + a family of related technologies, languages, specifica ons, Derived from SGML, developed by W3C, started in 1996 Design goals Simplicity, generality and usability across the Internet File extension: *.xml, content type: Versions: 1.0 and 1.1 W3C recommenda on h p:// B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
5 Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
6 Document Structure Document Prolog: XML version + some other stuff Exactly one root element Contains other nested elements and/or other content <?xml version = " version "...?>... element Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
7 Constructs Element Marked using opening and closing tags or just an abbreviated tag in case of empty elements Each element can be associated with a set of a ributes < name attribute > element content < / name > < name attribute / > Examples B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
8 Constructs Types of element content Empty content Text content Element content Sequence of nested elements Mixed content Elements arbitrarily interleaved with text values text element element text B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
9 Constructs A ribute Name-value pair name = " value " Escaping sequences (predefined en es) Used within values of a ributes or text content of elements E.g.: for for for B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
10 XML Conclusion XML constructs Basic: element, a ribute, text Addi onal: comment, processing instruc on, Schema languages DTD, XSD (XML Schema), RELAX NG, Schematron Query languages XPath, XQuery, XSLT XML formats = par cular languages XSD, XSLT, XHTML, DocBook, epub, SVG, RSS, SOAP, B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
11 JSON JavaScript Object Nota on
12 Introduc on JSON = JavaScript Object Nota on Open standard for data interchange Design goals Simplicity: text-based, easy to read and write Universality: object and array data structures Supported by majority of modern programming languages Based conven ons of the C-family of languages (C, C++, C#, Java, JavaScript, Perl, Python, ) Derived from JavaScript (but language independent) Started in 2002 File extension: *.json Content type: h p:// B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
13 Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
14 Data Structure Object Unordered collec on of name-value pairs (proper es) Correspond to structures such as objects, records, structs, dic onaries, hash tables, keyed lists, associa ve arrays, Values can be of different types, names should be unique { string : value }, Examples B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
15 Data Structure Array Ordered collec on of values Correspond to structures such as arrays, vectors, lists, sequences, Values can be of different types, duplicate values are allowed [ value ], Examples B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
16 Data Structure Value Unicode string Enclosed with double quotes Backslash escaping sequences Example: Number Decimal integers or floats Examples:,, Nested object Nested array Boolean value:, Missing informa on: string number object array true false null B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
17 JSON Conclusion JSON constructs Collec ons: object, array Scalar values: string, number, boolean, null Schema languages JSON Schema Query languages JSONiq, JMESPath, JAQL, B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
18 BSON Binary JSON
19 Introduc on BSON = Binary JSON Binary-encoded serializa on of JSON documents Extends the set of basic data types of values offered by JSON (such as a string, ) with a few new specific ones Design characteris cs: lightweight, traversable, efficient Used by MongoDB Document NoSQL database for JSON documents Data storage and network transfer format File extension: *.bson h p://bsonspec.org/ B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
20 Example JSON BSON B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
21 Document Structure Document = serializa on of one JSON object or array JSON object is serialized directly JSON array is first transformed to a JSON object Property names derived from numbers of posi ons E.g.: Structure Document size (total number of bytes) Sequence of elements (encoded JSON proper es) Termina ng hexadecimal byte int32 element 00 B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
22 Document Structure Element = serializa on of one JSON property name int32 byte name 10 name 12 name 03 name 04 name double int32 int64 document document 08 name A name 09 name 11 name int64 int64 B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
23 Document Structure Element = serializa on of one JSON property Structure Type selector (string) (double), (32-bit integer), (64-bit integer) (object), (array) (boolean) (null) (date me), ( mestamp) Property name Unicode string terminated by byte 00 Property value B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
24 RDF Resource Descrip on Framework
25 Introduc on RDF = Resource Descrip on Framework Language for represen ng informa on about resources in the World Wide Web + a family of related technologies, languages, specifica ons, Used in the context of the Seman c Web, Linked Data, Developed by W3C Started in 1997 Versions: 1.0 and 1.1 W3C recommenda ons h ps:// Concepts and Abstract Syntax h ps:// Seman cs B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
26 Statements Resource Any real-world en ty Referents = resources iden fied by IRI E.g. physical things, documents, abstract concepts, Values = resources for literals E.g. numbers, strings, Statement about resources = one RDF triple Three components: subject, predicate, and object Examples B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
27 Statements Triple components Subject Describes a resource the given statement is about IRI or blank node iden fier Predicate Describes the property or characteris c of the subject IRI Object Describes the value of that property IRI or blank node iden fier or literal Although triples are inspired by natural languages, they have nothing to do with processing of natural languages B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
28 Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
29 Iden fiers and Literals IRI = Interna onalized Resource Iden fier Absolute (not rela ve) IRIs with op onal fragment iden fiers RFC 3987 Unicode characters Examples URLs are o en used in prac ce informa on about given resources are then intended to be published / retrieved via standard HTTP B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
30 Iden fiers and Literals Literals Plain values E.g.:, Typed values E.g.:, XML Schema simple data types are adopted and used Strings with language tags E.g.: Types and language tags cannot be mutually combined B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
31 Iden fiers and Literals Blank node iden fiers Blank nodes (anonymous resources) Allow to express statements about resources without explicitly naming (iden fying) them Blank node iden fiers only have local scope of validity E.g. within a given file, query expression, Par cular syntax depends on a serializa on format E.g.: B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
32 Data Model Directed labeled mul graph Ver ces One vertex for each IRI or literal value Edges One edge for each individual triple Edges are directed Property names (predicate IRIs) are used as edge labels B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
33 Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
34 Serializa on Available approaches N-Triples nota on h ps:// Turtle nota on (Terse RDF Triple Language) h ps:// RDF/XML nota on XML syntax for RDF h ps:// JSON-LD nota on JSON-based serializa on for Linked Data h ps:// B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
35 N-Triples Nota on RDF N-Triples nota on = A line-based syntax for an RDF graph Simple, line-based, plain text format File extension: *.rdf h ps:// Example Already presented Document Statements are terminated by dots, delimited by EOL triple 0D 0A triple B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
36 N-Triples Nota on Statement Individual triple components are delimited by spaces subject predicate object. Triple components: subject, predicate, object IRI reference blank node id IRI reference IRI reference blank node id literal B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
37 N-Triples Nota on IRI reference IRIs are enclosed in angle brackets < IRI > Blank node iden fier _ : label Literal Literals are enclosed in double quotes " value " IRI reference language tag B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
38 Turtle Nota on Turtle = Terse RDF Triple Language Compact text format, various abbrevia ons for common usage pa erns File extension: *. l Content type: h ps:// Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
39 Turtle Nota on Document Contains a sequence of triples and/or declara ons Prefix declara ons Prefixed names can then be used instead of full IRI references Groups of triples Individual groups are terminated by prefix : IRI reference. triples B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
40 Turtle Nota on Triples Triples sharing the same subject and object or at least the same subject can be grouped together object list for a shared subject and predicate predicate-object list for a shared subject Brackets can be used to define blank nodes subject predicate object., ; [ predicate object ], predicate object ;, ; B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
41 Turtle Nota on Triple components: subject, predicate, object IRI reference prefixed name blank node id IRI reference prefixed name IRI reference prefixed name blank node id literal [ predicate-object list ] IRI reference / prefixed name < IRI > prefix : local name B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
42 Turtle Nota on Literal Tradi onal literals + new abbreviated forms of numeric and boolean literals " value " true false integer / decimal / double IRI reference prefixed name language tag B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
43 Example Example revisited B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
44 RDF Conclusion RDF statements Subject, predicate, and object components Schema languages RDFS (RDF Schema) OWL (Web Ontology Language) Query languages SPARQL (SPARQL Protocol and RDF Query Language) B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
45 CSV Comma-Separated Values
46 Introduc on CSV = Comma-Separated Values Unfortunately not fully standardized Different field separators (commas, semicolons) Different escaping sequences No encoding informa on RFC 4180, RFC 7111 File extension: *.csv Content type: B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
47 Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
48 Document Structure Document Op onal header + list of records name, name 0D 0A record 0D 0A record Record Comma separated list of fields value, value B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
49 Protocol Buffers
50 Introduc on Protocol Buffers Extensible mechanism for serializing structured data Used in communica on protocols, data storage, Design goals Language-neutral, pla orm-neutral Small, fast, simple Developed (and widely used) by Google Started in 2008 internally and 2011 publicly Versions: proto2, proto3 File extension: *.proto h ps://developers.google.com/protocol-buffers/ Real-world usage: RiakKV, HBase B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
51 Introduc on Intended usage Schema crea on automa c source code genera on sending messages between applica ons Components Interface descrip on language Source code generator ( compiler) Supported languages Official: C++, C#, Java, Python, Ruby 3rd party: Perl, PHP, Scala, Binary serializa on format Compact, not self-describing B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
52 Example B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
53 Schema Structure Schema One schema may contain mul ple message descrip ons Other constructs are allowed as well, e.g. enumera ons... message enum Message Represents a small logical record of informa on Defines a set of uniquely numbered fields Nested messages or enumera ons are allowed too message name { field message enum } B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
54 Schema Structure Field Describes one data value repeated type name = tag ; Rule allowed number of value occurrences Default = 0 or 1 value = 0 or more values (i.e. an arbitrary number) The order of individual values is preserved B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
55 Schema Structure Field Type Atomic:,,,,,, Mappings to data types of par cular programming languages as well as default values are introduced Composed: messages, enumera ons, Name name of a given field Tag internal integer iden fier Used to iden fy individual fields of a message in a binary format Frequently used fields should be assigned lower tags Since lower number of bytes will then be needed B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
56 Schema Structure Enumera on Descrip on of a predefined list of values The first item is considered to be the default value and its value must be equal to 0 enum name { item = constant ; } A few other constructs are available too (e.g. maps) B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
57
58 Lecture Conclusion Data formats Tree: XML, JSON Graph: RDF Rela onal: CSV Binary serializa ons BSON, Protocol Buffers B4M36DS2, BE4M36DS2: Database Systems 2 Lecture 2: Data Formats
Key-Value Stores: RiakKV
B4M36DS2: Database Systems 2 h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-b4m36ds2/ Lecture 4 Key-Value Stores: RiakKV Mar n Svoboda svoboda@ksi.mff.cuni.cz 24. 10. 2016 Charles University in Prague,
More informationKey-Value Stores: RiakKV
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.m.cuni.cz/~svoboda/courses/181-b4m36ds2/ Lecture 7 Key-Value Stores: RiakKV Mar n Svoboda mar n.svoboda@fel.cvut.cz 12. 11. 2018 Charles University,
More informationColumn-Family Stores: Cassandra
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-ndbi040/ Lecture 10 Column-Family Stores: Cassandra Mar n Svoboda svoboda@ksi.mff.cuni.cz 13. 12. 2016
More informationKey-Value Stores: RiakKV
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-ndbi040/ Lecture 4 Key-Value Stores: RiakKV Mar n Svoboda svoboda@ksi.mff.cuni.cz 25. 10. 2016 Charles
More informationh p://
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-b4m36ds2/ Prac cal Class 7 Cassandra Mar n Svoboda mar n.svoboda@fel.cvut.cz 27. 11. 2017 Charles University in Prague,
More informationNDBI040: Big Data Management and NoSQL Databases. h p:// svoboda/courses/ ndbi040/
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/ svoboda/courses/2016-1-ndbi040/ Prac cal Class 2 Riak Key-Value Store Mar n Svoboda svoboda@ksi.mff.cuni.cz 25. 10. 2016 Charles
More informationh p://
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.m.cuni.cz/~svoboda/courses/181-b4m36ds2/ Prac cal Class 7 Redis Mar n Svoboda mar n.svoboda@fel.cvut.cz 19. 11. 2018 Charles University, Faculty of
More informationNDBI040: Big Data Management and NoSQL Databases. h p://
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-ndbi040/ Prac cal Class 5 Riak Mar n Svoboda svoboda@ksi.mff.cuni.cz 13. 11. 2017 Charles University in Prague,
More informationData Formats. Course NDBI040: Big Data Management and NoSQL Databases. Lecture 06: Martin Svoboda
Course NDBI040: Big Data Management and NoSQL Databases Lecture 06: Data Formats Martin Svoboda 10. 11. 2015 Charles University in Prague, Faculty of Mathematics and Physics Outline Data formats JSON JavaScript
More informationh p://
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-b4m36ds2/ Lecture 1 Introduc on Mar n Svoboda mar n.svoboda@fel.cvut.cz 2. 10. 2017 Charles University in Prague,
More informationNDBI040: Big Data Management and NoSQL Databases
NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-ndbi040/ Prac cal Class 8 MongoDB Mar n Svoboda svoboda@ksi.mff.cuni.cz 5. 12. 2017 Charles University in
More informationMapReduce, Apache Hadoop
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-b4m36ds2/ Lecture 5 MapReduce, Apache Hadoop Mar n Svoboda mar n.svoboda@fel.cvut.cz 30. 10. 2017 Charles University
More informationFlat triples approach to RDF graphs in JSON
Flat triples approach to RDF graphs in JSON Dominik Tomaszuk Institute of Computer Science, University of Bialystok, Poland Abstract. This paper describes a syntax that can be used to write Resource Description
More informationCSC Web Technologies, Spring Web Data Exchange Formats
CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between
More informationIntroduction to JSON. Roger Lacroix MQ Technical Conference v
Introduction to JSON Roger Lacroix roger.lacroix@capitalware.com http://www.capitalware.com What is JSON? JSON: JavaScript Object Notation. JSON is a simple, text-based way to store and transmit structured
More informationSQL: Advanced Constructs
B0B36DBS, BD6B36DBS: Database Systems h p://www.ksi.mff.cuni.cz/~svoboda/courses/172-b0b36dbs/ Prac cal Class 8 SQL: Advanced Constructs Author: Mar n Svoboda, mar n.svoboda@fel.cvut.cz Tutors: J. Ahmad,
More informationh p://
B4M36DS2, BE4M36DS2: Database Systems 2 h p://www.ksi.m.cuni.cz/~svoboda/courses/181-b4m36ds2/ Prac cal Class 5 MapReduce Mar n Svoboda mar n.svoboda@fel.cvut.cz 5. 11. 2018 Charles University, Faculty
More informationMI-PDB, MIE-PDB: Advanced Database Systems
MI-PDB, MIE-PDB: Advanced Database Systems http://www.ksi.mff.cuni.cz/~svoboda/courses/2015-2-mie-pdb/ Lecture 11: RDF, SPARQL 3. 5. 2016 Lecturer: Martin Svoboda svoboda@ksi.mff.cuni.cz Author: Martin
More informationKNOWLEDGE GRAPHS. Lecture 2: Encoding Graphs with RDF. TU Dresden, 23th Oct Markus Krötzsch Knowledge-Based Systems
KNOWLEDGE GRAPHS Lecture 2: Encoding Graphs with RDF Markus Krötzsch Knowledge-Based Systems TU Dresden, 23th Oct 2018 Encoding Graphs We have seen that graphs can be encoded in several ways: Adjacency
More informationDocument Databases: MongoDB
NDBI040: Big Data Management and NoSQL Databases hp://www.ksi.mff.cuni.cz/~svoboda/courses/171-ndbi040/ Lecture 9 Document Databases: MongoDB Marn Svoboda svoboda@ksi.mff.cuni.cz 28. 11. 2017 Charles University
More information.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar..
.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar.. XML in a Nutshell XML, extended Markup Language is a collection of rules for universal markup of data. Brief History
More informationAuthor: Irena Holubová Lecturer: Martin Svoboda
NPRG036 XML Technologies Lecture 1 Introduction, XML, DTD 19. 2. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline Introduction
More informationJSON-LD 1.0 Processing Algorithms and API
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group;
More informationThis tutorial will help you understand JSON and its use within various programming languages such as PHP, PERL, Python, Ruby, Java, etc.
About the Tutorial JSON or JavaScript Object Notation is a lightweight text-based open standard designed for human-readable data interchange. The JSON format was originally specified by Douglas Crockford,
More informationProtocol Buffers, grpc
Protocol Buffers, grpc Szolgáltatásorientált rendszerintegráció Service-Oriented System Integration Dr. Balázs Simon BME, IIT Outline Remote communication application level vs. transport level protocols
More informationData Formats and APIs
Data Formats and APIs Mike Carey mjcarey@ics.uci.edu 0 Announcements Keep watching the course wiki page (especially its attachments): https://grape.ics.uci.edu/wiki/asterix/wiki/stats170ab-2018 Ditto for
More informationWeb Standards Mastering HTML5, CSS3, and XML
Web Standards Mastering HTML5, CSS3, and XML Leslie F. Sikos, Ph.D. orders-ny@springer-sbm.com www.springeronline.com rights@apress.com www.apress.com www.apress.com/bulk-sales www.apress.com Contents
More informationFrom the Web to the Semantic Web: RDF and RDF Schema
From the Web to the Semantic Web: RDF and RDF Schema Languages for web Master s Degree Course in Computer Engineering - (A.Y. 2016/2017) The Semantic Web [Berners-Lee et al., Scientific American, 2001]
More informationJava EE 7: Back-end Server Application Development 4-2
Java EE 7: Back-end Server Application Development 4-2 XML describes data objects called XML documents that: Are composed of markup language for structuring the document data Support custom tags for data
More informationREST Services. Zaenal Akbar
PS/ Web Services REST Services Zaenal Akbar Friday, - - Outline REST Services Overview Principles Common Errors Exercise What is REST? Set of architectural principles used for design of distributed systems
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid= 2465 1
More informationIntroduction to XML Zdeněk Žabokrtský, Rudolf Rosa
NPFL092 Technology for Natural Language Processing Introduction to XML Zdeněk Žabokrtský, Rudolf Rosa November 28, 2018 Charles Univeristy in Prague Faculty of Mathematics and Physics Institute of Formal
More informationJSON - Overview JSon Terminology
Announcements Introduction to Database Systems CSE 414 Lecture 12: Json and SQL++ Office hours changes this week Check schedule HW 4 due next Tuesday Start early WQ 4 due tomorrow 1 2 JSON - Overview JSon
More informationCOMP9321 Web Application Engineering. Extensible Markup Language (XML)
COMP9321 Web Application Engineering Extensible Markup Language (XML) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442
More informationExternal data representation
External data representation https://developers.google.com/protocol-buffers/ https://github.com/protobuf-c/protobuf-c http://www.drdobbs.com/webdevelopment/after-xml-json-thenwhat/240151851 http://www.digip.org/jansson/
More informationPackaging Data for the Web
Packaging Data for the Web EN 605.481 Principles of Enterprise Web Development Overview Both XML and JSON can be used to pass data between remote applications, clients and servers, etc. XML Usually heavier
More informationXPath. by Klaus Lüthje Lauri Pitkänen
XPath by Klaus Lüthje Lauri Pitkänen Agenda Introduction History Syntax Additional example and demo Applications Xpath 2.0 Future Introduction Expression language for Addressing portions of an XML document
More informationJSON-LD and MongoDB. Gregg Kellogg. Powering Linked Web Monday, August 20, 12
JSON-LD and MongoDB Powering Linked Web Apps Gregg Kellogg gregg@greggkellogg.net @gkellogg JSON-LD and Mongo JSON-LD graph expression in JSON MongoDB easily query JSON documents Together efficient graph
More informationExtensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013
Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline Introduction XML Structure Document Type Definition (DTD) XHMTL Formatting XML CSS Formatting XSLT Transformations
More informationElliotte Rusty Harold August From XML to Flat Buffers: Markup in the Twenty-teens
Elliotte Rusty Harold elharo@ibiblio.org August 2018 From XML to Flat Buffers: Markup in the Twenty-teens Warning! The Contenders XML JSON YAML EXI Protobufs Flat Protobufs XML JSON YAML EXI Protobuf Flat
More informationM359 Block5 - Lecture12 Eng/ Waleed Omar
Documents and markup languages The term XML stands for extensible Markup Language. Used to label the different parts of documents. Labeling helps in: Displaying the documents in a formatted way Querying
More informationB0B36DBS, BD6B36DBS: Database Systems
B0B36DBS, BD6B36DBS: Database Systems h p://www.ksi.m.cuni.cz/~svoboda/courses/172-b0b36dbs/ Prac cal Class 10 JDBC, JPA 2.1 Author: Mar n Svoboda, mar n.svoboda@fel.cvut.cz Tutors: J. Ahmad, R. Černoch,
More informationXML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9
XML databases Jan Chomicki University at Buffalo Jan Chomicki (University at Buffalo) XML databases 1 / 9 Outline 1 XML data model 2 XPath 3 XQuery Jan Chomicki (University at Buffalo) XML databases 2
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2411 1 Extensible
More informationKnowledge Representation for the Semantic Web
Knowledge Representation for the Semantic Web Winter Quarter 2012 Pascal Hitzler Slides 2 01/05/2011 Kno.e.sis Center Wright State University, Dayton, OH http://www.knoesis.org/pascal/ KR4SW Winter 2012
More informationSome more XML applications and XML-related standards (XLink, XPointer, XForms)
Some more XML applications and XML-related standards (XLink, XPointer, XForms) Patryk Czarnik XML and Applications 2014/2015 Lecture 12 19.01.2015 Standards for inter-document relations XPointer addressing
More informationOntological Modeling: Part 2
Ontological Modeling: Part 2 Terry Halpin LogicBlox This is the second in a series of articles on ontology-based approaches to modeling. The main focus is on popular ontology languages proposed for the
More informationSEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD
SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD WWW.IMRANIHSAN.COM MOTIVATION How do you encode the piece of knowledge: or
More informationXML: some structural principles
XML: some structural principles Hayo Thielecke University of Birmingham www.cs.bham.ac.uk/~hxt October 18, 2011 1 / 25 XML in SSC1 versus First year info+web Information and the Web is optional in Year
More informationCS Knowledge Representation and Reasoning (for the Semantic Web)
CS 7810 - Knowledge Representation and Reasoning (for the Semantic Web) 02 Resource Description Framework (RDF) Adila Krisnadhi Data Semantics Lab, Wright State University, Dayton, OH Outline 1. Motivation:
More informationXDS An Extensible Structure for Trustworthy Document Content Verification Simon Wiseman CTO Deep- Secure 3 rd June 2013
Assured and security Deep-Secure XDS An Extensible Structure for Trustworthy Document Content Verification Simon Wiseman CTO Deep- Secure 3 rd June 2013 This technical note describes the extensible Data
More informationUser Interaction: XML and JSON
User Interaction: XML and JSON Asst. Professor Donald J. Patterson INF 133 Fall 2011 1 What might a design notebook be like? Cooler What does a design notebook entry look like? HTML and XML 1989: Tim Berners-Lee
More informationAvro Specification
Table of contents 1 Introduction...2 2 Schema Declaration... 2 2.1 Primitive Types... 2 2.2 Complex Types...2 2.3 Names... 5 3 Data Serialization...6 3.1 Encodings... 6 3.2 Binary Encoding...6 3.3 JSON
More informationCopyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1
Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.
More informationWhich Of The Following Is Not One Of The Built-in Data Types Of Xml Schema Definition
Which Of The Following Is Not One Of The Built-in Data Types Of Xml Schema Definition 2.5 DTD (Document Type Definition) Validation - Simple Example To develop an XML document and schema, start with a
More informationHarnessing Publicly Available Factual Data in the Analytical Process
June 14, 2012 Harnessing Publicly Available Factual Data in the Analytical Process by Benson Margulies, CTO We put the World in the World Wide Web ABOUT BASIS TECHNOLOGY Basis Technology provides so ware
More information7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML
7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML is a markup language,
More informationXML Technologies. Doc. RNDr. Irena Holubova, Ph.D. Web pages:
XML Technologies Doc. RNDr. Irena Holubova, Ph.D. holubova@ksi.mff.cuni.cz Web pages: http://www.ksi.mff.cuni.cz/~holubova/nprg036/ Outline Introduction to XML format, overview of XML technologies DTD
More informationCopyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML
Chapter 7 XML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML
More informationCS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #7: En-ty/Rela-onal Model---Part 3
CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Lecture #7: En-ty/Rela-onal Model---Part 3 Purpose of E/R Model The E/R model allows us to sketch the design of a database informally.
More informationJava Basic Datatypees
Basic Datatypees Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in the memory. Based on the data type of a variable,
More informationXML. Jonathan Geisler. April 18, 2008
April 18, 2008 What is? IS... What is? IS... Text (portable) What is? IS... Text (portable) Markup (human readable) What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future)
More informationCS6501 IP Unit IV Page 1
CS6501 Internet Programming Unit IV Part - A 1. What is PHP? PHP - Hypertext Preprocessor -one of the most popular server-side scripting languages for creating dynamic Web pages. - an open-source technology
More informationSQL: Data De ni on. B0B36DBS, BD6B36DBS: Database Systems. h p://www.ksi.m.cuni.cz/~svoboda/courses/172-b0b36dbs/ Lecture 3
B0B36DBS, BD6B36DBS: Database Systems h p://www.ksi.m.cuni.cz/~svoboda/courses/172-b0b36dbs/ Lecture 3 SQL: Data De ni on Mar n Svoboda mar n.svoboda@fel.cvut.cz 13. 3. 2018 Czech Technical University
More informationBirkbeck (University of London)
Birkbeck (University of London) MSc Examination Department of Computer Science and Information Systems Internet and Web Technologies (COIY063H7) 15 Credits Date of Examination: 3 June 2016 Duration of
More information10/18/2017. Announcements. NoSQL Motivation. NoSQL. Serverless Architecture. What is the Problem? Database Systems CSE 414
Announcements Database Systems CSE 414 Lecture 11: NoSQL & JSON (mostly not in textbook only Ch 11.1) HW5 will be posted on Friday and due on Nov. 14, 11pm [No Web Quiz 5] Today s lecture: NoSQL & JSON
More informationPart VII. Querying XML The XQuery Data Model. Marc H. Scholl (DBIS, Uni KN) XML and Databases Winter 2005/06 153
Part VII Querying XML The XQuery Data Model Marc H. Scholl (DBIS, Uni KN) XML and Databases Winter 2005/06 153 Outline of this part 1 Querying XML Documents Overview 2 The XQuery Data Model The XQuery
More informationAdvanced Aspects and New Trends in XML (and Related) Technologies
NPRG039 Advanced Aspects and New Trends in XML (and Related) Technologies RNDr. Irena Holubová, Ph.D. holubova@ksi.mff.cuni.cz Lecture 2. JSON http://www.ksi.mff.cuni.cz/~holubova/nprg039/ JSON (JavaScript
More informationCSE 344 APRIL 16 TH SEMI-STRUCTURED DATA
CSE 344 APRIL 16 TH SEMI-STRUCTURED DATA ADMINISTRATIVE MINUTIAE HW3 due Wednesday OQ4 due Wednesday HW4 out Wednesday (Datalog) Exam May 9th 9:30-10:20 WHERE WE ARE So far we have studied the relational
More informationForeword... v Introduction... vi. 1 Scope Normative references Terms and definitions Extensible Datatypes schema overview...
Contents Page Foreword... v Introduction... vi 1 Scope... 1 2 Normative references... 1 3 Terms and definitions... 1 4 Extensible Datatypes schema overview... 2 5 Common constructs... 3 5.1 Common types...
More informationTransforming Data from into DataPile RDF Structure into RDF
Transforming Data from DataPile Structure Transforming Data from into DataPile RDF Structure into RDF Jiří Jiří Dokulil Charles Faculty of University, Mathematics Faculty and Physics, of Mathematics Charles
More informationData Presentation and Markup Languages
Data Presentation and Markup Languages MIE456 Tutorial Acknowledgements Some contents of this presentation are borrowed from a tutorial given at VLDB 2000, Cairo, Agypte (www.vldb.org) by D. Florescu &.
More informationCSE 544 Principles of Database Management Systems. Lecture 4: Data Models a Never-Ending Story
CSE 544 Principles of Database Management Systems Lecture 4: Data Models a Never-Ending Story 1 Announcements Project Start to think about class projects If needed, sign up to meet with me on Monday (I
More informationOli Language Documentation
Oli Language Documentation Release 0.0.1 Tomas Aparicio Sep 27, 2017 Contents 1 Project stage 3 2 Document stage 5 2.1 Table of Contents............................................. 5 2.1.1 Overview............................................
More information11. EXTENSIBLE MARKUP LANGUAGE (XML)
11. EXTENSIBLE MARKUP LANGUAGE (XML) Introduction Extensible Markup Language is a Meta language that describes the contents of the document. So these tags can be called as self-describing data tags. XML
More informationPECULIARITIES OF LINKED DATA PROCESSING IN SEMANTIC APPLICATIONS. Sergey Shcherbak, Ilona Galushka, Sergey Soloshich, Valeriy Zavgorodniy
International Journal "Information Models and Analyses" Vol.2 / 2013, Number 2 139 PECULIARITIES OF LINKED DATA PROCESSING IN SEMANTIC APPLICATIONS Sergey Shcherbak, Ilona Galushka, Sergey Soloshich, Valeriy
More informationCSCI-1680 RPC and Data Representation John Jannotti
CSCI-1680 RPC and Data Representation John Jannotti Original Slides from Rodrigo Fonseca Today Defining Protocols RPC IDL Problem Two programs want to communicate: must define the protocol We have seen
More informationUser Interaction: XML and JSON
User Interaction: XML and JSON Assoc. Professor Donald J. Patterson INF 133 Fall 2012 1 HTML and XML 1989: Tim Berners-Lee invents the Web with HTML as its publishing language Based on SGML Separates data
More informationCreating and Working with JSON in Oracle Database
Creating and Working with JSON in Oracle Database Dan McGhan Oracle Developer Advocate JavaScript & HTML5 January, 2016 Safe Harbor Statement The following is intended to outline our general product direction.
More informationXML Processing & Web Services. Husni Husni.trunojoyo.ac.id
XML Processing & Web Services Husni Husni.trunojoyo.ac.id Based on Randy Connolly and Ricardo Hoar Fundamentals of Web Development, Pearson Education, 2015 Objectives 1 XML Overview 2 XML Processing 3
More informationAvro Specification
Table of contents 1 Introduction...2 2 Schema Declaration... 2 2.1 Primitive Types... 2 2.2 Complex Types...2 2.3 Names... 5 2.4 Aliases... 6 3 Data Serialization...6 3.1 Encodings... 7 3.2 Binary Encoding...7
More informationDIRECT SUPPLIER P RTAL INSTRUCTIONS
DIRECT SUPPLIER P RTAL INSTRUCTIONS page I IMPORTANT Please complete short Online Tutorials and Quiz at www.supplierportal.coles.com.au/dsd TABLE of Contents 1 Ingredients 2 Log In 3 View a Purchase Order
More informationXML. XML Syntax. An example of XML:
XML Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. Defined in the XML 1.0 Specification
More information2009 Martin v. Löwis. Data-centric XML. XML Syntax
Data-centric XML XML Syntax 2 What Is XML? Extensible Markup Language Derived from SGML (Standard Generalized Markup Language) Two goals: large-scale electronic publishing exchange of wide variety of data
More informationThe XQuery Data Model
The XQuery Data Model 9. XQuery Data Model XQuery Type System Like for any other database query language, before we talk about the operators of the language, we have to specify exactly what it is that
More informationPublishing Technology 101 A Journal Publishing Primer. Mike Hepp Director, Technology Strategy Dartmouth Journal Services
Publishing Technology 101 A Journal Publishing Primer Mike Hepp Director, Technology Strategy Dartmouth Journal Services mike.hepp@sheridan.com Publishing Technology 101 AGENDA 12 3 EVOLUTION OF PUBLISHING
More informationStructured documents
Structured documents An overview of XML Structured documents Michael Houghton 15/11/2000 Unstructured documents Broadly speaking, text and multimedia document formats can be structured or unstructured.
More informationJSON Support for Junos OS
JSON Support for Junos OS 1 Introduction: Java Script Object Notation alias JSON a light weight data exchange format is being extensively used for data exchange between web application and servers. With
More informationWeiss Chapter 1 terminology (parenthesized numbers are page numbers)
Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement
More information3. Java - Language Constructs I
Educational Objectives 3. Java - Language Constructs I Names and Identifiers, Variables, Assignments, Constants, Datatypes, Operations, Evaluation of Expressions, Type Conversions You know the basic blocks
More information4. Inputting data or messages to a function is called passing data to the function.
Test Bank for A First Book of ANSI C 4th Edition by Bronson Link full download test bank: http://testbankcollection.com/download/test-bank-for-a-first-book-of-ansi-c-4th-edition -by-bronson/ Link full
More informationXML: Extensible Markup Language
XML: Extensible Markup Language CSC 375, Fall 2015 XML is a classic political compromise: it balances the needs of man and machine by being equally unreadable to both. Matthew Might Slides slightly modified
More informationMicroso 埘 Exam Dumps PDF for Guaranteed Success
Microso 埘 70 698 Exam Dumps PDF for Guaranteed Success The PDF version is simply a copy of a Portable Document of your Microso 埘 70 698 ques ons and answers product. The Microso 埘 Cer fied Solu on Associa
More informationXPath. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University
XPath Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept. of Computer Engineering Khon Kaen University 1 Overview What is XPath? Queries The XPath Data Model Location Paths Expressions
More informationPROCESSING NON-XML SOURCES AS XML. XML Amsterdam Alain Couthures - agencexml 06/11/2015
PROCESSING NON-XML SOURCES AS XML XML Amsterdam Alain Couthures - agencexml 06/11/2015 TREES XML, a tree with typed nodes Different node types: - DOCUMENT_NODE - ELEMENT_NODE - ATTRIBUTE_NODE - TEXT_NODE
More informationIndex. caps method, 180 Character(s) base, 161 classes
A Abjads, 160 Abstract syntax tree (AST), 3 with action objects, 141 143 definition, 135 Action method for integers converts, 172 173 S-Expressions, 171 Action objects ASTs, 141 142 defined, 137.made attribute,
More informationIntroduction to XML. University of California, Santa Cruz Extension Computer and Information Technology
Introduction to XML University of California, Santa Cruz Extension Computer and Information Technology Presented by: Bennett Smith bennettsmith@idevelopsoftware.com Introduction Answer the question What
More informationECMA-404. The JSON Data Interchange Syntax. 2 nd Edition / December Reference number ECMA-123:2009
ECMA-404 2 nd Edition / December 2017 The JSON Data Interchange Syntax Reference number ECMA-123:2009 Ecma International 2009 COPYRIGHT PROTECTED DOCUMENT Ecma International 2017 Contents Page 1 Scope...
More informationXML Metadata Standards and Topic Maps
XML Metadata Standards and Topic Maps Erik Wilde 16.7.2001 XML Metadata Standards and Topic Maps 1 Outline what is XML? a syntax (not a data model!) what is the data model behind XML? XML Information Set
More informationCOPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments
Acknowledgments Introduction ix xxvii Part I: Introduction 1 Chapter 1: What Is XML? 3 Of Data, Files, and Text 3 Binary Files 4 Text Files 5 A Brief History of Markup 6 So What Is XML? 7 What Does XML
More information