Class: RDF::Vocab::ACL

Inherits:
StrictVocabulary
  • Object
show all
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

Instance Attribute Details

#AccessRDF::Vocabulary::Term (readonly)

Any kind of access to a resource. Don’t use this, use R W and RW

Returns:

  • (RDF::Vocabulary::Term)


9
10
11
# File 'lib/rdf/vocab/acl.rb', line 9

def Access
  @Access
end

#accessControlRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


40
41
42
# File 'lib/rdf/vocab/acl.rb', line 40

def accessControl
  @accessControl
end

#accessToRDF::Vocabulary::Term (readonly)

The information resource to which access is being granted.

Returns:

  • (RDF::Vocabulary::Term)


44
45
46
# File 'lib/rdf/vocab/acl.rb', line 44

def accessTo
  @accessTo
end

#accessToClassRDF::Vocabulary::Term (readonly)

A class of information resources to which access is being granted.

Returns:

  • (RDF::Vocabulary::Term)


48
49
50
# File 'lib/rdf/vocab/acl.rb', line 48

def accessToClass
  @accessToClass
end

#agentRDF::Vocabulary::Term (readonly)

A person or social entity to being given the right

Returns:

  • (RDF::Vocabulary::Term)


52
53
54
# File 'lib/rdf/vocab/acl.rb', line 52

def agent
  @agent
end

#agentClassRDF::Vocabulary::Term (readonly)

A class of persons or social entities to being given the right

Returns:

  • (RDF::Vocabulary::Term)


56
57
58
# File 'lib/rdf/vocab/acl.rb', line 56

def agentClass
  @agentClass
end

#agentGroupRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


60
61
62
# File 'lib/rdf/vocab/acl.rb', line 60

def agentGroup
  @agentGroup
end

#AppendRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


13
14
15
# File 'lib/rdf/vocab/acl.rb', line 13

def Append
  @Append
end

#AuthenticatedAgentRDF::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)

Returns:

  • (RDF::Vocabulary::Term)


17
18
19
# File 'lib/rdf/vocab/acl.rb', line 17

def AuthenticatedAgent
  @AuthenticatedAgent
end

#AuthorizationRDF::Vocabulary::Term (readonly)

An element of access control, allowing agent to agents access of some kind to resources or classes of resources

Returns:

  • (RDF::Vocabulary::Term)


21
22
23
# File 'lib/rdf/vocab/acl.rb', line 21

def Authorization
  @Authorization
end

#ControlRDF::Vocabulary::Term (readonly)

Allows read/write access to the ACL for the resource(s)

Returns:

  • (RDF::Vocabulary::Term)


25
26
27
# File 'lib/rdf/vocab/acl.rb', line 25

def Control
  @Control
end

#defaultRDF::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.)

Returns:

  • (RDF::Vocabulary::Term)


64
65
66
# File 'lib/rdf/vocab/acl.rb', line 64

def default
  @default
end

#defaultForNewRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


68
69
70
# File 'lib/rdf/vocab/acl.rb', line 68

def defaultForNew
  @defaultForNew
end

#delegatesRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


72
73
74
# File 'lib/rdf/vocab/acl.rb', line 72

def delegates
  @delegates
end

#modeRDF::Vocabulary::Term (readonly)

A mode of access such as read or write.

Returns:

  • (RDF::Vocabulary::Term)


76
77
78
# File 'lib/rdf/vocab/acl.rb', line 76

def mode
  @mode
end

#OriginRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


29
30
31
# File 'lib/rdf/vocab/acl.rb', line 29

def Origin
  @Origin
end

#originRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


80
81
82
# File 'lib/rdf/vocab/acl.rb', line 80

def origin
  @origin
end

#ownerRDF::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.

Returns:

  • (RDF::Vocabulary::Term)


84
85
86
# File 'lib/rdf/vocab/acl.rb', line 84

def owner
  @owner
end

#ReadRDF::Vocabulary::Term (readonly)

The class of read operations

Returns:

  • (RDF::Vocabulary::Term)


33
34
35
# File 'lib/rdf/vocab/acl.rb', line 33

def Read
  @Read
end

#WriteRDF::Vocabulary::Term (readonly)

Returns:

  • (RDF::Vocabulary::Term)


36
37
38
# File 'lib/rdf/vocab/acl.rb', line 36

def Write
  @Write
end