rsa.n3 2.67 KB
@base <http://www.w3.org/ns/auth/rsa> .

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix dc: <http://purl.org/dc/terms/>.
@prefix cert: <cert#> .
@prefix : <rsa#> .


<rsa> a owl:Ontology ;
   dc:created "2008-11-13"^^xsd:date;
   foaf:maker <http://bblfish.net/people/henry/card#me>;
   dc:contributor [ foaf:homepage <http://ii.uwb.edu.pl/~dtomaszuk/card> ] ;
   vs:term_status "unstable";
   rdfs:seeAlso <http://en.wikipedia.org/wiki/RSA>;
   rdfs:seeAlso <http://lists.foaf-project.org/mailman/listinfo/foaf-protocols>;
   rdfs:seeAlso <X509Uml.svg>;
   rdfs:comment "ontology for the RSA public private keys "@en .

:RSAKey a owl:Class;
    rdfs:label "RSA Key"@en;
    rdfs:subClassOf cert:Key;
    vs:term_status "unstable";
    rdfs:comment """
    The union of the public and private components of an RSAKey.
    Usually those pieces are not kept together
    """@en.
     
:RSAPublicKey a owl:Class;
    rdfs:label "RSA Public Key"@en;
    rdfs:subClassOf cert:PublicKey, :RSAKey;
    vs:term_status "unstable";
    rdfs:seeAlso <http://en.wikipedia.org/wiki/RSA>;
    rdfs:comment """
    The RSA public key.  Padded message m are encrypted by applying the function
      modulus(power(m,exponent),modulus)
    """@en .

:modulus a owl:DatatypeProperty;
   rdfs:label "modulus"@en;
   vs:term_status "unstable";
   rdfs:comment """    
   The modulus of an RSA public and private key. 
   This is defined as n = p*q
   """@en;
   rdfs:domain :RSAKey;
   rdfs:range cert:int .

:public_exponent a owl:DatatypeProperty;
   rdfs:label "public_exponent"@en;
   vs:term_status "unstable";
   rdfs:comment """
       The exponent used to encrypt the message. Number chosen between
       1 and the totient(p*q). Often named 'e' .
    """@en;
   rdfs:domain :RSAPublicKey;
   rdfs:range cert:int .

:RSAPrivateKey a owl:Class;
    rdfs:label "RSA Private Key"@en;
    rdfs:subClassOf cert:PrivateKey, :RSAKey;
    vs:term_status "unstable";
    rdfs:seeAlso <http://en.wikipedia.org/wiki/RSA>;
    rdfs:comment """
    A Private Key in the RSA framework 
    """@en.

:private_exponent a owl:DatatypeProperty ;
    rdfs:label "private"@en;
    vs:term_status "unstable";
    rdfs:comment """
       The exponent used to decrypt the message
       calculated as 
          public_exponent*private_exponent = 1 modulo totient(p*q)
       The private exponent is often named 'd'
    """@en;
   rdfs:domain :RSAPrivateKey;
   rdfs:range cert:int .