Class: RDF::Vocab::ACL
- Inherits:
-
StrictVocabulary
- Object
- StrictVocabulary
- RDF::Vocab::ACL
- Defined in:
- lib/rdf/vocab/acl.rb
Overview
Vocabulary for <www.w3.org/ns/auth/acl#>
Basic Access Control ontology
Defines the class Authorization and its essential properties, and also some classes of access such as read and write.
Instance Attribute Summary collapse
-
#Access ⇒ RDF::Vocabulary::Term
readonly
Any kind of access to a resource.
-
#accessControl ⇒ RDF::Vocabulary::Term
readonly
The Access Control file for this information resource.
-
#accessTo ⇒ RDF::Vocabulary::Term
readonly
The information resource to which access is being granted.
-
#accessToClass ⇒ RDF::Vocabulary::Term
readonly
A class of information resources to which access is being granted.
-
#agent ⇒ RDF::Vocabulary::Term
readonly
A person or social entity to being given the right.
-
#agentClass ⇒ RDF::Vocabulary::Term
readonly
A class of persons or social entities to being given the right.
-
#agentGroup ⇒ RDF::Vocabulary::Term
readonly
A group of persons or social entities to being given the right.
-
#Append ⇒ RDF::Vocabulary::Term
readonly
Append accesses are specific write access which only add information, and do not remove information.
-
#AuthenticatedAgent ⇒ RDF::Vocabulary::Term
readonly
A class of agents who have been authenticated.
-
#Authorization ⇒ RDF::Vocabulary::Term
readonly
An element of access control, allowing agent to agents access of some kind to resources or classes of resources.
-
#Control ⇒ RDF::Vocabulary::Term
readonly
Allows read/write access to the ACL for the resource(s).
-
#default ⇒ RDF::Vocabulary::Term
readonly
If a resource has no ACL file (it is 404), then access to the resource if given by the ACL of the immediately containing directory, or failing that (404) the ACL of the recursively next containing directory which has an ACL file.
-
#defaultForNew ⇒ RDF::Vocabulary::Term
readonly
THIS IS OBSOLETE AS OF 2017-08-01.
-
#delegates ⇒ RDF::Vocabulary::Term
readonly
Delegates a person or another agent to act on behalf of the agent.
-
#mode ⇒ RDF::Vocabulary::Term
readonly
A mode of access such as read or write.
-
#Origin ⇒ RDF::Vocabulary::Term
readonly
An Origin is basically a web site (Note WITHOUT the trailing slash after the domain name and port in its URI) and is the basis for controlling access to data by web apps in the Same Origin Model of web security.
-
#origin ⇒ RDF::Vocabulary::Term
readonly
A web application, identified by its Origin, such as <scripts.example.com>, being given the right.
-
#owner ⇒ RDF::Vocabulary::Term
readonly
The person or other agent which owns this.
-
#Read ⇒ RDF::Vocabulary::Term
readonly
The class of read operations.
- #Write ⇒ RDF::Vocabulary::Term readonly
Instance Attribute Details
#Access ⇒ RDF::Vocabulary::Term (readonly)
Any kind of access to a resource. Don’t use this, use R W and RW
9 10 11 |
# File 'lib/rdf/vocab/acl.rb', line 9 def Access @Access end |
#accessControl ⇒ RDF::Vocabulary::Term (readonly)
The Access Control file for this information resource. This may of course be a virtual resource implemented by the access control system. Note also HTTP’s header Link: foo.meta ;rel=meta can be used for this.
40 41 42 |
# File 'lib/rdf/vocab/acl.rb', line 40 def accessControl @accessControl end |
#accessTo ⇒ RDF::Vocabulary::Term (readonly)
The information resource to which access is being granted.
44 45 46 |
# File 'lib/rdf/vocab/acl.rb', line 44 def accessTo @accessTo end |
#accessToClass ⇒ RDF::Vocabulary::Term (readonly)
A class of information resources to which access is being granted.
48 49 50 |
# File 'lib/rdf/vocab/acl.rb', line 48 def accessToClass @accessToClass end |
#agent ⇒ RDF::Vocabulary::Term (readonly)
A person or social entity to being given the right
52 53 54 |
# File 'lib/rdf/vocab/acl.rb', line 52 def agent @agent end |
#agentClass ⇒ RDF::Vocabulary::Term (readonly)
A class of persons or social entities to being given the right
56 57 58 |
# File 'lib/rdf/vocab/acl.rb', line 56 def agentClass @agentClass end |
#agentGroup ⇒ RDF::Vocabulary::Term (readonly)
A group of persons or social entities to being given the right. The right is given to any entity which is a vcard:member of the group, as defined by the document received when the Group is dereferenced.
60 61 62 |
# File 'lib/rdf/vocab/acl.rb', line 60 def agentGroup @agentGroup end |
#Append ⇒ RDF::Vocabulary::Term (readonly)
Append accesses are specific write access which only add information, and do not remove information. For text files, for example, append access allows bytes to be added onto the end of the file. For RDF graphs, Append access allows adds triples to the graph but does not remove any. Append access is useful for dropbox functionality. Dropbox can be used for link notification, which the information added is a notification that a some link has been made elsewhere relevant to the given resource.
13 14 15 |
# File 'lib/rdf/vocab/acl.rb', line 13 def Append @Append end |
#AuthenticatedAgent ⇒ RDF::Vocabulary::Term (readonly)
A class of agents who have been authenticated. In other words, anyone can access this resource, but not anonymously. The social expectation is that the authentication process will provide an identify and a name, or pseudonym. (A new ID should not be minted for every access: the intent is that the user is able to continue to use the ID for continues interactions with peers, and for example to develop a reputation)
17 18 19 |
# File 'lib/rdf/vocab/acl.rb', line 17 def AuthenticatedAgent @AuthenticatedAgent end |
#Authorization ⇒ RDF::Vocabulary::Term (readonly)
An element of access control, allowing agent to agents access of some kind to resources or classes of resources
21 22 23 |
# File 'lib/rdf/vocab/acl.rb', line 21 def Authorization @Authorization end |
#Control ⇒ RDF::Vocabulary::Term (readonly)
Allows read/write access to the ACL for the resource(s)
25 26 27 |
# File 'lib/rdf/vocab/acl.rb', line 25 def Control @Control end |
#default ⇒ RDF::Vocabulary::Term (readonly)
If a resource has no ACL file (it is 404), then access to the resource if given by the ACL of the immediately containing directory, or failing that (404) the ACL of the recursively next containing directory which has an ACL file. Within that ACL file, any Authentication which has that directory as its acl:default applies to the resource. (The highest directory must have an ACL file.)
64 65 66 |
# File 'lib/rdf/vocab/acl.rb', line 64 def default @default end |
#defaultForNew ⇒ RDF::Vocabulary::Term (readonly)
THIS IS OBSOLETE AS OF 2017-08-01. See ‘default’. Was: A directory for which this authorization is used for new files in the directory.
68 69 70 |
# File 'lib/rdf/vocab/acl.rb', line 68 def defaultForNew @defaultForNew end |
#delegates ⇒ RDF::Vocabulary::Term (readonly)
Delegates a person or another agent to act on behalf of the agent. For example, Alice delegates Bob to act on behalf of Alice for ACL purposes.
72 73 74 |
# File 'lib/rdf/vocab/acl.rb', line 72 def delegates @delegates end |
#mode ⇒ RDF::Vocabulary::Term (readonly)
A mode of access such as read or write.
76 77 78 |
# File 'lib/rdf/vocab/acl.rb', line 76 def mode @mode end |
#Origin ⇒ RDF::Vocabulary::Term (readonly)
An Origin is basically a web site (Note WITHOUT the trailing slash after the domain name and port in its URI) and is the basis for controlling access to data by web apps in the Same Origin Model of web security. All scripts from the same origin are given the same right.
29 30 31 |
# File 'lib/rdf/vocab/acl.rb', line 29 def Origin @Origin end |
#origin ⇒ RDF::Vocabulary::Term (readonly)
A web application, identified by its Origin, such as <scripts.example.com>, being given the right. When a user of the web application at a certain origin accesses the server, then the browser sets the Origin: header to warn that a possibly untrusted webapp is being used. Then, BOTH the user AND the origin must have the required access.
80 81 82 |
# File 'lib/rdf/vocab/acl.rb', line 80 def origin @origin end |
#owner ⇒ RDF::Vocabulary::Term (readonly)
The person or other agent which owns this. For example, the owner of a file in a filesystem. There is a sense of right to control. Typically defaults to the agent who craeted something but can be changed.
84 85 86 |
# File 'lib/rdf/vocab/acl.rb', line 84 def owner @owner end |
#Read ⇒ RDF::Vocabulary::Term (readonly)
The class of read operations
33 34 35 |
# File 'lib/rdf/vocab/acl.rb', line 33 def Read @Read end |
#Write ⇒ RDF::Vocabulary::Term (readonly)
36 37 38 |
# File 'lib/rdf/vocab/acl.rb', line 36 def Write @Write end |