DataPower can help protect against DoS/DDoS. This was created a while back, content is still valid for the DP. Update a little to call out some newer features.
The DDS specification provides fine-grained control over the real-time behaviour, dependability, and performance of DDS applications by means of a rich set of QoS Policies. The challenge for many DDS users is that the specifications explains very clearly how each QoS allows to control very specific aspects of data distribution yet it provides no hints on how different QoS should be composed to control complex properties such as the consistency model, or to impose end-to-end real-time scheduling decision. This half-day tutorial will fill this gap by providing attendees with (1) an explanation of how the various QoS compose, and (2) providing attendees with a series of QoS-composition Patters that can be used to control macro-properties of an application, such as the consistency model.
DTD stands for Document Type Definition. It defines the structure and elements of an XML document. DTDs check if an XML document is valid by defining the grammar. They are used to create and manage large sets of shared documents. DTDs declare elements, attributes, entities, and define the document structure with content models. While DTDs were useful, more robust alternatives like XML Schema emerged.
An introduction to OAuth2 and OpenID Connect intended for a technical audience. This covers terminology, core concepts, and all the core grants/flows for OAuth2 and OpenID Connect
OpenID Connect 4 SSI is an initiative conducted at OpenID Foundation in liaison with the Decentralized Identity Foundation. It aims at specifying a set of protocols based on OpenID Connect to enable SSI applications.
O documento descreve os requisitos para um sistema de revisão de diagnóstico médico distribuído. Os principais requisitos incluem: (1) permitir que médicos solicitem exames de consultores, (2) fornecer aos consultores a capacidade de cadastrar os resultados dos exames, e (3) permitir que estudantes de medicina consultem prontuários médicos para fins educacionais.
The document discusses an HL7 FHIR training course. It covers supporting the implementation of FHIR, bundles, documents and messages, exercises using FHIR APIs and profiles, and an overview of the HL7 family and FHIR specification. Developer resources are also presented for getting started with FHIR, including browsing the FHIR site, downloading FHIR distributions, the publication process, and search functionality using the FHIR REST API.
As the industry’s first enterprise identity bus (EIB), WSO2 Identity Server is the central backbone that connects and manages multiple identities across applications, APIs, the cloud, mobile, and Internet of Things devices, regardless of the standards on which they are based. The multi-tenant WSO2 Identity Server can be deployed directly on servers or in the cloud, and has the ability to propagate identities across geographical and enterprise borders in a connected business environment.
DataPower can help protect against DoS/DDoS. This was created a while back, content is still valid for the DP. Update a little to call out some newer features.
The DDS specification provides fine-grained control over the real-time behaviour, dependability, and performance of DDS applications by means of a rich set of QoS Policies. The challenge for many DDS users is that the specifications explains very clearly how each QoS allows to control very specific aspects of data distribution yet it provides no hints on how different QoS should be composed to control complex properties such as the consistency model, or to impose end-to-end real-time scheduling decision. This half-day tutorial will fill this gap by providing attendees with (1) an explanation of how the various QoS compose, and (2) providing attendees with a series of QoS-composition Patters that can be used to control macro-properties of an application, such as the consistency model.
DTD stands for Document Type Definition. It defines the structure and elements of an XML document. DTDs check if an XML document is valid by defining the grammar. They are used to create and manage large sets of shared documents. DTDs declare elements, attributes, entities, and define the document structure with content models. While DTDs were useful, more robust alternatives like XML Schema emerged.
An introduction to OAuth2 and OpenID Connect intended for a technical audience. This covers terminology, core concepts, and all the core grants/flows for OAuth2 and OpenID Connect
OpenID Connect 4 SSI is an initiative conducted at OpenID Foundation in liaison with the Decentralized Identity Foundation. It aims at specifying a set of protocols based on OpenID Connect to enable SSI applications.
O documento descreve os requisitos para um sistema de revisão de diagnóstico médico distribuído. Os principais requisitos incluem: (1) permitir que médicos solicitem exames de consultores, (2) fornecer aos consultores a capacidade de cadastrar os resultados dos exames, e (3) permitir que estudantes de medicina consultem prontuários médicos para fins educacionais.
The document discusses an HL7 FHIR training course. It covers supporting the implementation of FHIR, bundles, documents and messages, exercises using FHIR APIs and profiles, and an overview of the HL7 family and FHIR specification. Developer resources are also presented for getting started with FHIR, including browsing the FHIR site, downloading FHIR distributions, the publication process, and search functionality using the FHIR REST API.
As the industry’s first enterprise identity bus (EIB), WSO2 Identity Server is the central backbone that connects and manages multiple identities across applications, APIs, the cloud, mobile, and Internet of Things devices, regardless of the standards on which they are based. The multi-tenant WSO2 Identity Server can be deployed directly on servers or in the cloud, and has the ability to propagate identities across geographical and enterprise borders in a connected business environment.
Self-sovereign identity (SSI) is a new identity model that gives the user control and ownership over her data.
To dive into what this means and the benefits it offers, Evernym's Andy Tobin gave a webinar on October 17, 2019 introducing the topic of self-sovereign identity and its role in transforming customer experiences and unlocking competitive advantage.
Il "Knowledge Graph" della Pubblica Amministrazione ItalianaGraphRM
Incontro del 15/10/2018
Un'unica strada ci porta solo a luoghi tra due località; il valore reale delle strade deriva dall'essere parte di una rete. I dati funzionano allo stesso modo: non è solo avere più dati che ne abilita il valore, ma anche collegarli tra loro” riporta l’autorità di statistica inglese.
A oggi, sempre più realtà industriali strutturano dati attraverso standard del web semantico (linked data). Basti pensare a Google e al suo “knowledge graph” largamente utilizzato e costruito sull’ontologia schema.org, conforme alla specifica JSON-LD.
E nel settore pubblico?
La presentazione mira a illustrare OntoPiA – la rete di ontologie e vocabolari controllati della pubblica amministrazione italiana. La rete fornisce gli schemi per creare e interrogare il knowledge graph della pubblica amministrazione, consentendo anche il suo collegamento nel web dei dati. Verranno presentati sia la metodologia adottata per la creazione di OntoPiA sia il processo di costruzione del knowledge graph, basato su OntoPiA, attraverso il Data & Analytics Framework (DAF) realizzato dal Team per la Trasformazione Digitale.
Speaker: Giorgia Lodi
Link video: https://youtu.be/B3dM_WMPi2Q
Alfresco : Implementing Membership and Security Wildan Maulana
This document discusses Alfresco's membership and security model. It covers creating and managing users and groups, assigning permissions and roles, and securing spaces and content. The core concepts covered include users and groups, default permissions and roles, authentication, and how to extend security policies. Specific steps are provided for inviting users to spaces and content and assigning them appropriate roles to govern access.
The document discusses Alfresco security best practices. It covers topics such as hardening the network and operating system, implementing firewall rules, assessing vulnerabilities, and compliance with standards. Best practices for the Alfresco implementation include staying current with patches, enforcing strong permissions, and deleting content when it is removed. The document provides an overview of security considerations for the Alfresco architecture, mobile access, and other deployment aspects.
By John Breitenbach, RTI Field Applications Engineer
Contents
Introduction to RTI
Introduction to Data Distribution Service (DDS)
DDS Secure
Connext DDS Professional
Real-World Use Cases
RTI Professional Services
LINE is introducing FIDO authentication to improve security for account registration, login, and transactions across its various services. Potential use cases for FIDO include social login, setting confirmation, desktop app login, transaction authentication for payments, IoT control, and hands-free IoT control. LINE plans to integrate FIDO using UAF and FIDO2 standards and deploy an authentication platform to serve as an identity provider across its services and other apps and websites by 2020.
The Semantic Web #9 - Web Ontology Language (OWL)Myungjin Lee
This is a lecture note #9 for my class of Graduate School of Yonsei University, Korea.
It describes Web Ontology Language (OWL) for authoring ontologies.
Archivematica is an open source digital preservation system. The document discusses Archivematica's APIs, which allow programmatic interaction with its functions. It provides examples of starting transfers, checking statuses, and downloading packages using the APIs and tools like cURL and AMClient.py. The document also explains some Archivematica terminology and concepts related to its APIs.
“Open Data Web” – A Linked Open Data Repository Built with CKANChengjen Lee
This document summarizes the development of an open linked data repository called Open Data Web (ODW) built using CKAN. Key points:
- ODW publishes structured data from a Taiwanese archive catalog as linked open data using the RDF data model.
- It provides features for browsing, spatial and temporal querying of the data through a SPARQL endpoint.
- The system was implemented by customizing CKAN using extensions to support linked data import/export, custom fields, spatial/temporal search.
- Future work includes improving import speed and providing native SPARQL queries in CKAN.
Interoperabilità semantica: metadatazione e ontologie per la PAGiorgia Lodi
La presentazione è stata fatta in occasione di un corso di formazione presso la regione Umbria nel 2018 su interoperabilità semantica e ontologie. La presentazione include un esempio di mappatura di un dataset della regione sulle strutture ricettive rispetto alla relativa ontologia di OntoPiA (ACCO-AP_IT) e una descrizione dell'ontologia dei servizi pubblici CPSV-AP_IT
Verifiable Credentials 101 for SSI and Decentralized Digital Identity - Tyler...SSIMeetup
http://ssimeetup.org/verifiable-credentials-101-ssi-tyler-ruff-webinar-11/
Tyler Ruff, product manager at Evernym, will be our next guest to walk us through Verifiable Credentials in the context of Self-Sovereign Identity. He will cover how they are created, issued and shared, as well as cover some common technical questions.
The Verifiable Credentials discussed are based off a W3C standard for DIDs (decentralized identifiers) and Verifiable Credentials. The hope is that educating the identity and blockchain community on best practices for creating, issuing, storing and sharing Verifiable Credentials will foster interoperability between identity providers, ultimately making the whole ecosystem more valuable to the end consumer.
The focus of this presentation is how Verifiable Credentials work, and why the different steps and components are necessary.
If we can make Verifiable Credentials truly interoperable across industries, providers and domains, we can take a giant step forward towards a real self-sovereign world where individuals are in control of their digital lives and can benefit from every interaction they have—online and off. It all starts with getting interoperable, Verifiable Credentials under your control.
FIWARE Identity Management and Access ControlFIWARE
This training camp teaches you how FIWARE technologies and iSHARE, brought together under the umbrella of the i4Trust initiative, can be combined to provide the means for creation of data spaces in which multiple organizations can exchange digital twin data in a trusted and efficient manner, collaborating in the development of innovative services based on data sharing and creating value out of the data they share. SMEs and Digital Innovation Hubs (DIHs) will be equipped with the necessary know-how to use the i4Trust framework for creating data spaces!
"SPARQL Cheat Sheet" is a short collection of slides intended to act as a guide to SPARQL developers. It includes the syntax and structure of SPARQL queries, common SPARQL prefixes and functions, and help with RDF datasets.
The "SPARQL Cheat Sheet" is intended to accompany the SPARQL By Example slides available at http://www.cambridgesemantics.com/2008/09/sparql-by-example/ .
Primero empiezo con una breve introducción sobre accesibilidad web: objetivos, WAI, WCAG, etc.
Después enumero las directrices POUR: Perceptible, Operable, Comprensible, Robusto
Luego cuento los mitos de la accesibiliad web y los beneficios que obtenemos siguiendo las pautas de accesibilidad web.
Seguidamente, enumero los problemas de discapacidad, e intento mostrar como navegan los usuarios con dichas discapacidades.
También enumero los dispositivos harware y software que los usuarios con discapacidad suelen utilizar.
Continúo contando de una forma general los desafíos de las personas con discapacidad y las posibles soluciones, enumerando justo después los principios claves a tener en cuenta cuando desarrollamos una aplicación web.
Acto seguido, muestro trucos y códigos de ejemplo de los elementos más importantes a tener en cuenta: imágenes y animaciones, mapas de imagen, elementos multimedia, enlaces, organización de las páginas, figuras y diagramas, scripts, frames, tablas, formularios y elementos repetitivos
Para terminar enumero ciertas herramientas que nos pueden ser útiles para validar la accesibilidad web.
The document discusses API security patterns and practices. It covers topics like API gateways, authentication methods like basic authentication and OAuth 2.0, authorization with XACML policies, and securing APIs through measures like TLS, JWTs, and throttling to ensure authentication, authorization, confidentiality, integrity, non-repudiation, and availability. Key points covered include the gateway pattern, direct vs brokered authentication, JSON web tokens for self-contained access tokens, and combining OAuth and XACML for fine-grained access control.
OpenID for SSI aims to specify protocols based on OpenID Connect and OAuth 2.0 to enable self-sovereign identity (SSI) applications. This initiative is conducted by the OpenID Foundation in collaboration with the Decentralized Identity Foundation. One specification builds upon the DID-SIOP and SIOPv1 standards. Using OpenID Connect allows for variety in SSI technology choices like identifiers, credentials, and cryptography while leveraging existing OpenID Connect implementations, libraries, and developer familiarity. Demonstrations show credential presentation and issuance via OIDC4SSI specifications.
Self-sovereign identity (SSI) is a new identity model that gives the user control and ownership over her data.
To dive into what this means and the benefits it offers, Evernym's Andy Tobin gave a webinar on October 17, 2019 introducing the topic of self-sovereign identity and its role in transforming customer experiences and unlocking competitive advantage.
Il "Knowledge Graph" della Pubblica Amministrazione ItalianaGraphRM
Incontro del 15/10/2018
Un'unica strada ci porta solo a luoghi tra due località; il valore reale delle strade deriva dall'essere parte di una rete. I dati funzionano allo stesso modo: non è solo avere più dati che ne abilita il valore, ma anche collegarli tra loro” riporta l’autorità di statistica inglese.
A oggi, sempre più realtà industriali strutturano dati attraverso standard del web semantico (linked data). Basti pensare a Google e al suo “knowledge graph” largamente utilizzato e costruito sull’ontologia schema.org, conforme alla specifica JSON-LD.
E nel settore pubblico?
La presentazione mira a illustrare OntoPiA – la rete di ontologie e vocabolari controllati della pubblica amministrazione italiana. La rete fornisce gli schemi per creare e interrogare il knowledge graph della pubblica amministrazione, consentendo anche il suo collegamento nel web dei dati. Verranno presentati sia la metodologia adottata per la creazione di OntoPiA sia il processo di costruzione del knowledge graph, basato su OntoPiA, attraverso il Data & Analytics Framework (DAF) realizzato dal Team per la Trasformazione Digitale.
Speaker: Giorgia Lodi
Link video: https://youtu.be/B3dM_WMPi2Q
Alfresco : Implementing Membership and Security Wildan Maulana
This document discusses Alfresco's membership and security model. It covers creating and managing users and groups, assigning permissions and roles, and securing spaces and content. The core concepts covered include users and groups, default permissions and roles, authentication, and how to extend security policies. Specific steps are provided for inviting users to spaces and content and assigning them appropriate roles to govern access.
The document discusses Alfresco security best practices. It covers topics such as hardening the network and operating system, implementing firewall rules, assessing vulnerabilities, and compliance with standards. Best practices for the Alfresco implementation include staying current with patches, enforcing strong permissions, and deleting content when it is removed. The document provides an overview of security considerations for the Alfresco architecture, mobile access, and other deployment aspects.
By John Breitenbach, RTI Field Applications Engineer
Contents
Introduction to RTI
Introduction to Data Distribution Service (DDS)
DDS Secure
Connext DDS Professional
Real-World Use Cases
RTI Professional Services
LINE is introducing FIDO authentication to improve security for account registration, login, and transactions across its various services. Potential use cases for FIDO include social login, setting confirmation, desktop app login, transaction authentication for payments, IoT control, and hands-free IoT control. LINE plans to integrate FIDO using UAF and FIDO2 standards and deploy an authentication platform to serve as an identity provider across its services and other apps and websites by 2020.
The Semantic Web #9 - Web Ontology Language (OWL)Myungjin Lee
This is a lecture note #9 for my class of Graduate School of Yonsei University, Korea.
It describes Web Ontology Language (OWL) for authoring ontologies.
Archivematica is an open source digital preservation system. The document discusses Archivematica's APIs, which allow programmatic interaction with its functions. It provides examples of starting transfers, checking statuses, and downloading packages using the APIs and tools like cURL and AMClient.py. The document also explains some Archivematica terminology and concepts related to its APIs.
“Open Data Web” – A Linked Open Data Repository Built with CKANChengjen Lee
This document summarizes the development of an open linked data repository called Open Data Web (ODW) built using CKAN. Key points:
- ODW publishes structured data from a Taiwanese archive catalog as linked open data using the RDF data model.
- It provides features for browsing, spatial and temporal querying of the data through a SPARQL endpoint.
- The system was implemented by customizing CKAN using extensions to support linked data import/export, custom fields, spatial/temporal search.
- Future work includes improving import speed and providing native SPARQL queries in CKAN.
Interoperabilità semantica: metadatazione e ontologie per la PAGiorgia Lodi
La presentazione è stata fatta in occasione di un corso di formazione presso la regione Umbria nel 2018 su interoperabilità semantica e ontologie. La presentazione include un esempio di mappatura di un dataset della regione sulle strutture ricettive rispetto alla relativa ontologia di OntoPiA (ACCO-AP_IT) e una descrizione dell'ontologia dei servizi pubblici CPSV-AP_IT
Verifiable Credentials 101 for SSI and Decentralized Digital Identity - Tyler...SSIMeetup
http://ssimeetup.org/verifiable-credentials-101-ssi-tyler-ruff-webinar-11/
Tyler Ruff, product manager at Evernym, will be our next guest to walk us through Verifiable Credentials in the context of Self-Sovereign Identity. He will cover how they are created, issued and shared, as well as cover some common technical questions.
The Verifiable Credentials discussed are based off a W3C standard for DIDs (decentralized identifiers) and Verifiable Credentials. The hope is that educating the identity and blockchain community on best practices for creating, issuing, storing and sharing Verifiable Credentials will foster interoperability between identity providers, ultimately making the whole ecosystem more valuable to the end consumer.
The focus of this presentation is how Verifiable Credentials work, and why the different steps and components are necessary.
If we can make Verifiable Credentials truly interoperable across industries, providers and domains, we can take a giant step forward towards a real self-sovereign world where individuals are in control of their digital lives and can benefit from every interaction they have—online and off. It all starts with getting interoperable, Verifiable Credentials under your control.
FIWARE Identity Management and Access ControlFIWARE
This training camp teaches you how FIWARE technologies and iSHARE, brought together under the umbrella of the i4Trust initiative, can be combined to provide the means for creation of data spaces in which multiple organizations can exchange digital twin data in a trusted and efficient manner, collaborating in the development of innovative services based on data sharing and creating value out of the data they share. SMEs and Digital Innovation Hubs (DIHs) will be equipped with the necessary know-how to use the i4Trust framework for creating data spaces!
"SPARQL Cheat Sheet" is a short collection of slides intended to act as a guide to SPARQL developers. It includes the syntax and structure of SPARQL queries, common SPARQL prefixes and functions, and help with RDF datasets.
The "SPARQL Cheat Sheet" is intended to accompany the SPARQL By Example slides available at http://www.cambridgesemantics.com/2008/09/sparql-by-example/ .
Primero empiezo con una breve introducción sobre accesibilidad web: objetivos, WAI, WCAG, etc.
Después enumero las directrices POUR: Perceptible, Operable, Comprensible, Robusto
Luego cuento los mitos de la accesibiliad web y los beneficios que obtenemos siguiendo las pautas de accesibilidad web.
Seguidamente, enumero los problemas de discapacidad, e intento mostrar como navegan los usuarios con dichas discapacidades.
También enumero los dispositivos harware y software que los usuarios con discapacidad suelen utilizar.
Continúo contando de una forma general los desafíos de las personas con discapacidad y las posibles soluciones, enumerando justo después los principios claves a tener en cuenta cuando desarrollamos una aplicación web.
Acto seguido, muestro trucos y códigos de ejemplo de los elementos más importantes a tener en cuenta: imágenes y animaciones, mapas de imagen, elementos multimedia, enlaces, organización de las páginas, figuras y diagramas, scripts, frames, tablas, formularios y elementos repetitivos
Para terminar enumero ciertas herramientas que nos pueden ser útiles para validar la accesibilidad web.
The document discusses API security patterns and practices. It covers topics like API gateways, authentication methods like basic authentication and OAuth 2.0, authorization with XACML policies, and securing APIs through measures like TLS, JWTs, and throttling to ensure authentication, authorization, confidentiality, integrity, non-repudiation, and availability. Key points covered include the gateway pattern, direct vs brokered authentication, JSON web tokens for self-contained access tokens, and combining OAuth and XACML for fine-grained access control.
OpenID for SSI aims to specify protocols based on OpenID Connect and OAuth 2.0 to enable self-sovereign identity (SSI) applications. This initiative is conducted by the OpenID Foundation in collaboration with the Decentralized Identity Foundation. One specification builds upon the DID-SIOP and SIOPv1 standards. Using OpenID Connect allows for variety in SSI technology choices like identifiers, credentials, and cryptography while leveraging existing OpenID Connect implementations, libraries, and developer familiarity. Demonstrations show credential presentation and issuance via OIDC4SSI specifications.
L’eXtensible Markup Language, fin dalla sua nascita, ha avuto un gran consenso da parte di tutti gli attori che operano nel mondo informatico, diventando di fatto la base di molte applicazioni, in particolar modo di quelle che fondano la loro attività sullo scambio di informazioni, per la sua semplicità ed interoperabilità.
Cos'è un documento XML e perché è adatto all'impaginazione con InDesign?
in queste slide alcune informazioni sul formato XML e sui comandi di InDesign che consentono di importare dati XML all'interno di InDesign.
COSA SONO E COME FUNZIONANO I CSS
Rielaborazione delle slide utilizzate nei miei vecchi seminari sui CSS.
Licenza Creative Commons < http://creativecommons.org/licenses/by-nc-nd/3.0/ >
Introduzione ai CSS by Gianluca Troiani is licensed under a Creative Commons Attribuzione - Non commerciale - Non opere derivate 3.0 Unported License.
Based on a work at www.constile.org.
Permissions beyond the scope of this license may be available at http://www.constile.org/res/introcss.html.
Andrea Angiolini + Prof. Fabio Vitali (Casa editrice Il Mulino)
Da quasi 10 anni il Mulino ha strutturato il proprio processo di produzione, formalizzando workflow di metadati e file e definendo ruoli per gli attori della catena editoriale.
Lo scopo principale era e resta conservare la produzione dei libri, rendendola riutilizzabile perché basata su standard. Questo ci ha permesso tra l'altro di realizzare successivamente nuovi contenuti e servizi per la ricerca e lo studio, nei quali le interfacce d’uso sono centrali.
Fabio Vitali è Professore all’Università di Bologna, Dipartimento di Informatica, Scienza e Ingegneria ed è attualmente il coordinatore del corso di studi di Informatica.
Si definisce un data designer e ha contribuito alla progettazione di linguaggi e metalinguaggi per la descrizione di domini, come XML Schema per il W3C e Akoma Ntoso per OASIS.
I suoi interessi scientifici si rivolgono principalmente alla definizione e all’uso di formati documentali per ogni tipo di applicazione, ed in particolare all’utilizzo di linguaggi dichiarativi per caratterizzare applicazioni software in genere che trattino dati e documenti.
https://www.unibo.it/sitoweb/fabio.vitali/cv
2. Che cos’è XML
• È un linguaggio di markup,in alcuni aspetti simile
all’HTML,pensato per superare i limiti dell’HTML.
• Elabora documenti strutturati e rappresenta dati
testuali molto complessi.
• Non è un linguaggio di programmazione ma serve
per definire linguaggi applicativi, atti a descrivere
la struttura di documenti.
• Utilizza dei tag o elementi che non sono
predefiniti, ma non tiene conto del loro valore
semantico, come avviene nell’HTML,quindi è il
programmatore che li sceglie.
3. <tag/elementi> in XML
• I tag permettono di descrivere il documento
sotto forma di albero
• I tag sono corredati di attributi che
permettono di esprimere relazioni complesse
tra i diversi rami dell’albero,permettendo la
rappresentazione di strutture arbitrarie
• XML fornisce un meccanismo tramite cui il
programmatore può costruire un linguaggio
adatto alle proprie esigenze
4.
5.
6. Obiettivi
• XML deve essere utilizzabile in modo semplice su Internet
• XML deve supportare un gran numero di applicazioni
• XML deve essere compatibile con SGML
• Deve essere facile lo sviluppo di programmi che elaborino
documenti XML
• Il numero di caratteristiche opzionali deve essere mantenuto al
minimo possibile, idealmente a zero
• I documenti XML dovrebbero essere leggibili da un uomo e
ragionevolmente chiari
• La progettazione XML dovrebbe essere rapida
• La progettazione XML deve essere formale e concisa
• I documenti XML devono essere facili da creare
• L'economicità nel markup XML non è di nessuna importanza
7. Da che cosa è composto
• File XML
• DTD(Document Type Definition)
• Eventualmente da un file XSL(eXtensible
Stylesheet Language)o una visualizzazione
tramite CSS
8. File XML
Sintassi:
• Ogni file inizia con la dichiarazione del linguaggio
e la propria versione.
• Si ha un corpo del programma nel quale si
specificano gli elementi che a noi interessano
• Ogni elemento va aperto e infine chiuso,non
sono ammessi elementi senza chiusura
• Gli elementi devono essere correttamente
nidificati.
9. Attributi
• Gli attributi vengono utilizzati per aggiungere una
caratteristica o una proprietà ad un elemento.
• Un attributo è una coppia nome-valore separata da un
segno di uguale (=) che può essere presente all’interno
del tag di apertura di un elemento, dopo il nome
dell’elemento stesso.
• Un elemento può contenere uno o più attributi.
• Il valore di un attributo deve essere racchiuso fra “ ” o ‘
’.
• Ogni attributo è sempre associato ad un elemento,
non ha vita autonoma.
• Lo stesso attributo può ricorrere anche in più elementi.
11. Document Type Definition
• Una caratteristica fondamentale dell’XML è
l’estensibilità. L’autore di un documento XML
può creare nuovi tag per descrivere i
contenuti semantici dei propri dati.
• Ciò ha portato alla necessità di definire delle
regole grammaticali, o vincoli, alle quali gli
elementi devono attenersi.
• Queste regole grammaticali sono definite
nelle specifiche XML e sono codificate nel
Document Type Definition.
12. Definizione di elementi (1)
• Per definire all’interno di una DTD la presenza di un elemento
(tag) occorre utilizzare la parola chiave ELEMENT, la quale
accetta la seguente sintassi
dove:
nome è il nome che il tag avrà nel documento XML
(ovviamente deve rispettare le regole che rendono i
documenti XML ben formati)
regola_dtd indica il tipo di contenuto che questo tag avrà ed
eventualmente la sua relazione con altri contenuti descritti
nella DTD.
13. Definizione di elementi (2)
I possibili valori che può assumere regola_dtd sono:
• ANY: indica che il contenuto del tag può essere qualunque
cosa, cioè tag e/o testo.
• PCDATA (Parsed Character Data): dichiara che il tag può
contenere solo e unicamente contenuto di tipo testo,
sintatticamente corretto dal momento che i parser dovranno
leggerlo e interpretarlo.
• EMPTY: comunica al parser che il tag sarà costituito solo di
attributi e non conterrà al suo interno né testo né altri tag.
• GRUPPI DI ELEMENTI
14. Definizione di elementi (3)
Vediamo qualche esempio:
• Tag chiamato Titolo che contiene al suo interno solo
testo: <!ELEMENT Titolo (#PCDATA) >
• Tag chiamato Libro che può contenere sia testo che
tag: <!ELEMENT Libro ANY >
• Tag chiamato Libro che non ha contenuto e
rappresenta le sue informazioni solo tramite
attributi: <!ELEMENT Libro EMPTY >
15. Definizione di attributi (1)
• Per definire gli attributi di un documento XML si usa il comando ATTLIST,
secondo la seguente sintassi:
dove:
• elemento è il nome del tag del quale stiamo definendo l’attributo
• nome_attributo è ovviamente il nome dell’attributo
• tipo è la definizione del tipo di valore associato all’attributo
• valore_default è un eventuale valore di default (predefinito)
16. Valori di default di attributi
• Quando si definiscono gli attributi per gli
elementi è anche possibile dichiarare dei
vincoli relativi alla presenza o meno degli
stessi tag.
• Si utilizzano le seguenti parole chiave:
17. Esempio file DTD
• <!ELEMENT farmacia (prodotti)>
• <!ELEMENT prodotti
(nome,codice,scadenza,genere,princ_att,FormaFarmaceutica)>
• <!ELEMENT nome ( #PCDATA)>
• <!ELEMENT codice ( #PCDATA)>
• <!ELEMENT scadenza ( #PCDATA)>
• <!ELEMENT genere ( #PCDATA)>
• <!ATTLIST genere tipo (antidolorifico|antibiotico|antistaminico|
antinfluenzale) #IMPLIED>
• <!ELEMENT princ_att ( #PCDATA)>
• <!ELEMENT FormaFarmaceutica ( #PCDATA)>