上傳檔案到「/」

This commit is contained in:
joy 2026-06-10 02:16:07 +09:00
parent b198b438c4
commit 361e0c7415
2 changed files with 81 additions and 0 deletions

40
a.owl Normal file
View File

@ -0,0 +1,40 @@
<?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>

41
a.rdf Normal file
View File

@ -0,0 +1,41 @@
<?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:ex="http://example.org/rbac#">
<ex:Permission rdf:about="http://example.org/rbac#PermRead">
<rdfs:label>讀取權限</rdfs:label>
</ex:Permission>
<ex:Permission rdf:about="http://example.org/rbac#PermWrite">
<rdfs:label>寫入權限</rdfs:label>
</ex:Permission>
<ex:Permission rdf:about="http://example.org/rbac#PermDelete">
<rdfs:label>刪除權限</rdfs:label>
</ex:Permission>
<ex:Role rdf:about="http://example.org/rbac#RoleAdmin">
<rdfs:label>系統管理員</rdfs:label>
<ex:hasPermission rdf:resource="http://example.org/rbac#PermRead"/>
<ex:hasPermission rdf:resource="http://example.org/rbac#PermWrite"/>
<ex:hasPermission rdf:resource="http://example.org/rbac#PermDelete"/>
</ex:Role>
<ex:Role rdf:about="http://example.org/rbac#RoleEditor">
<rdfs:label>一般編輯</rdfs:label>
<ex:hasPermission rdf:resource="http://example.org/rbac#PermRead"/>
<ex:hasPermission rdf:resource="http://example.org/rbac#PermWrite"/>
</ex:Role>
<ex:User rdf:about="http://example.org/rbac#UserAlice">
<ex:username>alice_admin</ex:username>
<ex:hasRole rdf:resource="http://example.org/rbac#RoleAdmin"/>
</ex:User>
<ex:User rdf:about="http://example.org/rbac#UserBob">
<ex:username>bob_editor</ex:username>
<ex:hasRole rdf:resource="http://example.org/rbac#RoleEditor"/>
</ex:User>
</rdf:RDF>