xml/a.owl
2026-06-10 02:16:07 +09:00

40 lines
1.5 KiB
Plaintext

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:ex="http://example.org/rbac#">
<owl:Ontology rdf:about="http://example.org/rbac"/>
<owl:Class rdf:about="http://example.org/rbac#User">
<rdfs:label>使用者</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://example.org/rbac#Role">
<rdfs:label>角色</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://example.org/rbac#Permission">
<rdfs:label>權限</rdfs:label>
</owl:Class>
<owl:ObjectProperty rdf:about="http://example.org/rbac#hasRole">
<rdfs:domain rdf:resource="http://example.org/rbac#User"/>
<rdfs:range rdf:resource="http://example.org/rbac#Role"/>
<rdfs:label>擁有角色</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://example.org/rbac#hasPermission">
<rdfs:domain rdf:resource="http://example.org/rbac#Role"/>
<rdfs:range rdf:resource="http://example.org/rbac#Permission"/>
<rdfs:label>擁有權限</rdfs:label>
</owl:ObjectProperty>
<owl:DatatypeProperty rdf:about="http://example.org/rbac#username">
<rdfs:domain rdf:resource="http://example.org/rbac#User"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
<rdfs:label>使用者帳號</rdfs:label>
</owl:DatatypeProperty>
</rdf:RDF>