# Path: sc/baseVocabulary.py
# class baseVocabulary(object):
#     __metaclass__ = ABCMeta
#     """
#         Any class that will inherits from BaseRegisteredClass will be included
#         inside the dict RegistryHolder.REGISTRY, the key being the name of the
#         class and the associated value, the class itself.
#     """
#     graph = rdflib.Dataset(default_union=True)
#     context = {}
#     namespace = []
#     @abstractmethod
#     def build(self):
#         pass
# 
# Path: sc/envVocabulary.py
# class envVocabulary(baseVocabulary):
# 
#     def __init__(self):
#         pass
# 
#     def build(self):
#         ds = self.graph
#         self.context = {"ce":
#                         "https://raw.githubusercontent.com/Vocamp/ComputationalActivity/master/pattern/ComputationalEnvironment.jsonld"}
# 
#         CE = Namespace("http://dase.cs.wright.edu/ontologies/ComputationalEnvironment#")
#         CA = Namespace("http://dase.cs.wright.edu/ontologies/ComputationalActivity#")
#         DOCKER = Namespace("http://w3id.org/daspos/docker#")
#         info = cpuinfo.get_cpu_info()
# 
# # ISSUES: We want if the architecture URI's to be created only once on
# # build or initial commit. Otherwise, we want to re-read the URI's
# #  from the original graph. There are imm
# 
#         ds.bind("ce", CE)
#         ceuri = URIRef(str(uuid.uuid4()))
#         ds.add((ceuri, RDF.type, CE.ComputationalEnvironment))
# 
#         osUri = URIRef(str(uuid.uuid4()))
#         ds.add((ceuri, CE.hasOperatingSystem, osUri))
#         ds.add((osUri, RDFS.label, Literal("linux")))
# 
#         processorUri = URIRef(str(uuid.uuid4()))
#         ds.add((ceuri, CE.hasHardware, processorUri))
# 
#         archUri = URIRef(str(uuid.uuid4()))
#         ds.add((processorUri, CE.hasArchitecture,  archUri))
#         ds.add((archUri, RDFS.label, Literal("amd64")))
#         ds.add((processorUri, CE.hasNumberOfCores,
#                 Literal("4", datatype=XSD.nonNegativeInteger)))
# 
#         # :hasArchitecture
#         # :hasNumberOfCores
#         # :hasOperatingSystem
#         # :hasSize Memory or HD
#         # :isAvailable
#         # :VirtualMACAddress


import json
import pytest
import uuid
from rdflib import Namespace, URIRef, RDF, RDFS, Literal
from sc import baseVocabulary
from sc import envVocabulary
# -*- coding: utf-8 -*-
"""Test code for envVocabulary for SmartContainers.

This module provides tests for the ComputationalEnvironment ontology.
"""

tstuuid = str(uuid.uuid4())
uuidurn = "urn:uuid:"+tstuuid


def test_create_graph():

# Path: sc/baseVocabulary.py
# class baseVocabulary(object):
#     __metaclass__ = ABCMeta
#     """
#         Any class that will inherits from BaseRegisteredClass will be included
#         inside the dict RegistryHolder.REGISTRY, the key being the name of the
#         class and the associated value, the class itself.
#     """
#     graph = rdflib.Dataset(default_union=True)
#     context = {}
#     namespace = []
#     @abstractmethod
#     def build(self):
#         pass
# 
# Path: sc/envVocabulary.py
# class envVocabulary(baseVocabulary):
# 
#     def __init__(self):
#         pass
# 
#     def build(self):
#         ds = self.graph
#         self.context = {"ce":
#                         "https://raw.githubusercontent.com/Vocamp/ComputationalActivity/master/pattern/ComputationalEnvironment.jsonld"}
# 
#         CE = Namespace("http://dase.cs.wright.edu/ontologies/ComputationalEnvironment#")
#         CA = Namespace("http://dase.cs.wright.edu/ontologies/ComputationalActivity#")
#         DOCKER = Namespace("http://w3id.org/daspos/docker#")
#         info = cpuinfo.get_cpu_info()
# 
# # ISSUES: We want if the architecture URI's to be created only once on
# # build or initial commit. Otherwise, we want to re-read the URI's
# #  from the original graph. There are imm
# 
#         ds.bind("ce", CE)
#         ceuri = URIRef(str(uuid.uuid4()))
#         ds.add((ceuri, RDF.type, CE.ComputationalEnvironment))
# 
#         osUri = URIRef(str(uuid.uuid4()))
#         ds.add((ceuri, CE.hasOperatingSystem, osUri))
#         ds.add((osUri, RDFS.label, Literal("linux")))
# 
#         processorUri = URIRef(str(uuid.uuid4()))
#         ds.add((ceuri, CE.hasHardware, processorUri))
# 
#         archUri = URIRef(str(uuid.uuid4()))
#         ds.add((processorUri, CE.hasArchitecture,  archUri))
#         ds.add((archUri, RDFS.label, Literal("amd64")))
#         ds.add((processorUri, CE.hasNumberOfCores,
#                 Literal("4", datatype=XSD.nonNegativeInteger)))
# 
#         # :hasArchitecture
#         # :hasNumberOfCores
#         # :hasOperatingSystem
#         # :hasSize Memory or HD
#         # :isAvailable
#         # :VirtualMACAddress


# Path: tests/unit/test_envvocabulary.py
import json
import pytest
import uuid
from rdflib import Namespace, URIRef, RDF, RDFS, Literal
from sc import baseVocabulary
from sc import envVocabulary

# -*- coding: utf-8 -*-
"""Test code for envVocabulary for SmartContainers.

This module provides tests for the ComputationalEnvironment ontology.
"""

tstuuid = str(uuid.uuid4())
uuidurn = "urn:uuid:"+tstuuid


def test_create_graph():

    vocab = envVocabulary.envVocabulary()