og

The Open Graph Java implementation

License

License

MIT
GroupId

GroupId

com.nikialeksey
ArtifactId

ArtifactId

og
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

og
The Open Graph Java implementation
Project URL

Project URL

https://github.com/nikialeksey/og
Project Organization

Project Organization

Og
Source Code Management

Source Code Management

https://github.com/nikialeksey/og

Download og

How to add to project

<!-- https://jarcasting.com/artifacts/com.nikialeksey/og/ -->
<dependency>
    <groupId>com.nikialeksey</groupId>
    <artifactId>og</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.nikialeksey/og/
implementation 'com.nikialeksey:og:0.0.2'
// https://jarcasting.com/artifacts/com.nikialeksey/og/
implementation ("com.nikialeksey:og:0.0.2")
'com.nikialeksey:og:jar:0.0.2'
<dependency org="com.nikialeksey" name="og" rev="0.0.2">
  <artifact name="og" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.nikialeksey', module='og', version='0.0.2')
)
libraryDependencies += "com.nikialeksey" % "og" % "0.0.2"
[com.nikialeksey/og "0.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.cactoos : cactoos jar 0.34

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Elegant Objects Respected Here

Maven Central Build Status codecov License

The Open Graph Java implementation

The Open Graph is a protocol for creating object in social graph from a web page.

Generation

new OgArticle(
    new OgtDateTime(OffsetDateTime.of(2017, 3, 10, 15, 12, 0, 0, ZoneOffset.ofHours(7))),
    new OgProfile("Alexey", "Nikitin", "nikialeksey"),
    "android", "programming"
).html()

will produce:

<meta property="article:published_time" content="2017-03-10T15:12+07:00" />
<meta property="article:author:profile:first_name" content="Alexey" />
<meta property="article:author:profile:last_name" content="Nikitin" />
<meta property="article:author:profile:username" content="nikialeksey" />
<meta property="article:tag" content="android" />
<meta property="article:tag" content="programming" />

Parsing

TBD

Versions

Version
0.0.2
0.0.1