This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
vcard.xsd
53 lines (53 loc) · 2.43 KB
/
vcard.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dct="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:vcard="http://www.w3.org/2006/vcard/ns#" targetNamespace="http://www.w3.org/2006/vcard/ns#" elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:annotation>
<xs:documentation xml:lang="en">
ADMS XML Schema
http://www.w3.org/ns/adms#
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://purl.org/dc/terms/" schemaLocation="dcterms.xsd"/>
<xs:import namespace="http://xmlns.com/foaf/0.1/" schemaLocation="foaf.xsd"/>
<xs:import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" schemaLocation="rdf.xsd"/>
<xs:import namespace="http://www.w3.org/2004/02/skos/core#" schemaLocation="skos.xsd"/>
<!-- vcard:Kind-->
<xs:complexType name="Organization">
<xs:sequence>
<xs:element name="Organization">
<xs:complexType>
<xs:sequence>
<!-- optional properties-->
<xs:element name="fn" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="organization-name" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element ref="vcard:hasAddress" minOccurs="0" maxOccurs="1"/>
<xs:element name="hasEmail" type="rdf:Resource" maxOccurs="1"/>
<xs:element name="hasURL" type="rdf:Resource" minOccurs="0" maxOccurs="1"/>
<xs:element name="hasTelephone" type="xs:anyURI" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute ref="rdf:about"/>
<xs:attribute ref="rdf:nodeID"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- vcard:Address-->
<xs:complexType name="Address">
<xs:sequence>
<xs:element name="Address">
<xs:complexType>
<xs:sequence>
<!-- mandatory properties-->
<xs:element name="street-address" type="xs:string" maxOccurs="1"/>
<xs:element name="locality" type="xs:string" maxOccurs="1"/>
<xs:element name="postal-code" type="xs:string" maxOccurs="1"/>
<xs:element name="country-name" type="xs:string" maxOccurs="1"/>
</xs:sequence>
<xs:attribute ref="rdf:about"/>
<xs:attribute ref="rdf:nodeID"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- individual elements-->
<xs:element name="hasAddress" type="vcard:Address"/>
</xs:schema>