/// <summary>
        /// Gets a graph representation of this target
        /// </summary>
        internal override RDFGraph ToRDFGraph(RDFShape shape)
        {
            var result = new RDFGraph();

            //sh:targetSubjectsOf
            if (shape != null)
            {
                result.AddTriple(new RDFTriple(shape, RDFVocabulary.SHACL.TARGET_SUBJECTS_OF, this.TargetValue));
            }

            return(result);
        }
Example #2
0
        /// <summary>
        /// Gets a graph representation of this target
        /// </summary>
        internal override RDFGraph ToRDFGraph(RDFShape shape)
        {
            var result = new RDFGraph();

            //sh:targetClass
            if (shape != null)
            {
                result.AddTriple(new RDFTriple(shape, RDFVocabulary.SHACL.TARGET_CLASS, this.TargetValue));
            }

            return(result);
        }
Example #3
0
 /// <summary>
 /// Gets a graph representation of this target
 /// </summary>
 internal abstract RDFGraph ToRDFGraph(RDFShape shape);