Exemplo n.º 1
0
 public IEnumerable<XElement> ToRDFAll(string imageId, Mark.Form form)
 {
     if(Id==null) yield break;
     yield return ToRDF(ImageId,
                        new XElement("position",
                                     new XAttribute("x", origin.X),
                                     new XAttribute("y", origin.Y),
                                   form==Mark.Form.Circle
                                         ? new XAttribute("r", Radius)
                                         : new XAttribute("rect",
                                                          RectangleSize.Width + "|" + RectangleSize.Height)));
     //if(Autor.Id!=null && )
     //yield return   return new XElement("reflection", Autor.reflectionId == null
     //                                      ? null
     //                                      : new XAttribute(SNames.rdfabout, reflectionId),
     //                    new XElement("reflected",
     //                                 new XAttribute(SNames.rdfresource, id)),
     //                    new XElement("in-doc",
     //                                 new XAttribute(SNames.rdfresource, inDocId)),
     //                    content);
     foreach (var reflected in Reflecteds.Where(reflected=>reflected.Id!=null))
         yield return reflected.ToRDF(id);
 }
Exemplo n.º 2
0
        public IEnumerable<XElement> ToRDFAll(string imageId, Mark.Form form)
        {
            if(Id!=null)
            yield return ToRDF(ImageId,
                               new XElement("position",
                                            new XAttribute("x", origin.X),
                                            new XAttribute("y", origin.Y),
                                          form==Mark.Form.Circle
                                                ? new XAttribute("r", Radius)
                                                : new XAttribute("rect",
                                                                 RectangleSize.Width + "|" + RectangleSize.Height)));

            foreach (var reflected in Reflecteds.Where(reflected=>reflected.Id!=null))
                yield return reflected.ToRDF(id);
        }