This repository was 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
/
Copy pathfoaf.xsd
48 lines (48 loc) · 1.88 KB
/
foaf.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
<?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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" targetNamespace="http://xmlns.com/foaf/0.1/" elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:annotation>
<xs:documentation xml:lang="en">
FOAF XML Schema (relevant parts for DCAT-AP)
http://xmlns.com/foaf/0.1/
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://purl.org/dc/terms/" schemaLocation="dcterms.xsd"/>
<xs:import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" schemaLocation="rdf.xsd"/>
<!-- foaf:Document-->
<xs:complexType name="Document">
<xs:sequence>
<xs:element name="Document">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="rdf:PlainLiteral" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="rdf:about"/>
<xs:attribute ref="rdf:nodeID"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- foaf:Agent-->
<xs:complexType name="Agent">
<xs:sequence>
<xs:element name="Agent">
<xs:complexType>
<xs:sequence>
<!-- mandatory properties for foaf:Agent-->
<xs:element ref="foaf:name" minOccurs="1" maxOccurs="unbounded"/>
<!-- recommended properties for foaf:Agent-->
<xs:element ref="dct:type" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute ref="rdf:about"/>
<xs:attribute ref="rdf:nodeID"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- foaf:Agent-->
<xs:element name="primaryTopic" type="xs:anyURI"/>
<xs:element name="page" type="foaf:Document"/>
<xs:element name="homepage" type="foaf:Document"/>
<xs:element name="mbox" type="xs:anyURI"/>
<xs:element name="name" type="rdf:PlainLiteral"/>
</xs:schema>