Package org.apache.marmotta.ldclient.provider.phpbb.mapping

Examples of org.apache.marmotta.ldclient.provider.phpbb.mapping.PHPBBForumHrefMapper


                    // otherwise we also take the initial title, creator and date for the topic
                    postMappings.put(Namespaces.NS_DC + "title", new CssTextLiteralMapper("div#pageheader a.titles"));
                    postMappings.put(Namespaces.NS_DC + "description", new CssTextLiteralMapper("div#pageheader span.forumdesc"));
                    postMappings.put(Namespaces.NS_SIOC + "container_of", new PHPBBTopicHrefMapper("a.topictitle"));

                    postMappings.put(Namespaces.NS_SIOC + "parent_of", new PHPBBForumHrefMapper("a.forumlink, a.forumtitle"));
                }

                return postMappings;
            } else
                throw new RuntimeException("the requested resource does not seem to identify a PHPBB Forum (t=... parameter missing)");
View Full Code Here


                                    return new Elements(e);
                            }
                            return new Elements();
                        }
                    });
                    postMappings.put(Namespaces.NS_SIOC + "has_container", new PHPBBForumHrefMapper("p.breadcrumbs a") {
                        @Override
                        public Elements select(Element htmlDoc) {
                            final Element select = super.select(htmlDoc).last();
                            return select != null ? new Elements(select) : new Elements();
                        }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.ldclient.provider.phpbb.mapping.PHPBBForumHrefMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.