store/html
Methods
(static) entryInfo(entryInfo) → {string}
- Description:
 Prints the three types of the entry, i.e. entry, resource and graphtype.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
entryInfo | 
            
            EntryInfo | 
Returns:
- Type
 - string
 
(static) metadataIndent(graph, subject) → {string}
- Description:
 Prints one level of triples from a subject where URIs are namespaced.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
graph | 
            
            rdfjson/Graph | the graph containing the metadata  | 
        
subject | 
            
            string | URI to a resource to start from  | 
        
Returns:
string with the triples rendered as HTML.
- Type
 - string
 
(static) metadataTable(entry) → {string}
- Description:
 Generates a table with columns subject, predicate, and object.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
entry | 
            
            Entry | to expose metadata for  | 
        
Returns:
rendered html as a string
- Type
 - string
 
(static) print(entry) → {string}
- Description:
 Prints information about the entry, including entryinfo, metadata, cached external metadata as well as which context the entry belongs to.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
entry | 
            
            Entry | 
Returns:
information about the entry as a HTML string.
- Type
 - string